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-anon-struct-float.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/headers/derive-hash-struct-with-anon-struct-float.h (limited to 'tests/headers/derive-hash-struct-with-anon-struct-float.h') diff --git a/tests/headers/derive-hash-struct-with-anon-struct-float.h b/tests/headers/derive-hash-struct-with-anon-struct-float.h new file mode 100644 index 00000000..2b76cd23 --- /dev/null +++ b/tests/headers/derive-hash-struct-with-anon-struct-float.h @@ -0,0 +1,9 @@ +// bindgen-flags: --with-derive-hash +// +/// A struct containing a struct containing a float that cannot derive hash. +struct foo { + struct { + float a; + float b; + } bar; +}; -- cgit v1.2.3