From b4895d96698504dc28dfa64c4c4e4c3f3714a3c8 Mon Sep 17 00:00:00 2001 From: Zhiting Zhu Date: Tue, 8 Aug 2017 16:06:26 -0700 Subject: Small dedicated tests for derive Hash --- tests/headers/derive-hash-struct-with-float-array.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/headers/derive-hash-struct-with-float-array.h (limited to 'tests/headers/derive-hash-struct-with-float-array.h') diff --git a/tests/headers/derive-hash-struct-with-float-array.h b/tests/headers/derive-hash-struct-with-float-array.h new file mode 100644 index 00000000..53f0c79d --- /dev/null +++ b/tests/headers/derive-hash-struct-with-float-array.h @@ -0,0 +1,6 @@ +// bindgen-flags: --with-derive-hash +// +/// A struct containing an array of floats that cannot derive hash. +struct foo { + float bar[3]; +}; -- cgit v1.2.3