summaryrefslogtreecommitdiff
path: root/tests/headers
diff options
context:
space:
mode:
authorZhiting Zhu <zzhu@mozilla.com>2017-08-04 15:36:48 -0700
committerZhiting Zhu <zzhu@mozilla.com>2017-08-09 15:19:00 -0700
commite358a00e88e5d69608dd0c4967a4e2e0c78f323f (patch)
tree7186ae247848c9983e8b51ff7a4456a28d58f6d0 /tests/headers
parentdb6a3fb3a5fe14172926a7a486244f5ef5e65d8a (diff)
Anonymous related tests for derive Hash
Diffstat (limited to 'tests/headers')
-rw-r--r--tests/headers/anon_enum.hpp1
-rw-r--r--tests/headers/anon_enum_trait.hpp1
-rw-r--r--tests/headers/anon_struct_in_union.h1
-rw-r--r--tests/headers/anon_union.hpp1
4 files changed, 4 insertions, 0 deletions
diff --git a/tests/headers/anon_enum.hpp b/tests/headers/anon_enum.hpp
index 1961fe6c..1a55a8d1 100644
--- a/tests/headers/anon_enum.hpp
+++ b/tests/headers/anon_enum.hpp
@@ -1,3 +1,4 @@
+// bindgen-flags: --with-derive-hash
struct Test {
int foo;
float bar;
diff --git a/tests/headers/anon_enum_trait.hpp b/tests/headers/anon_enum_trait.hpp
index e1ec394c..22137392 100644
--- a/tests/headers/anon_enum_trait.hpp
+++ b/tests/headers/anon_enum_trait.hpp
@@ -1,3 +1,4 @@
+// bindgen-flags: --with-derive-hash
template<typename _Tp>
class DataType {
diff --git a/tests/headers/anon_struct_in_union.h b/tests/headers/anon_struct_in_union.h
index 880a8b54..2e6ac5e9 100644
--- a/tests/headers/anon_struct_in_union.h
+++ b/tests/headers/anon_struct_in_union.h
@@ -1,3 +1,4 @@
+// bindgen-flags: --with-derive-hash
struct s {
union {
struct inner {
diff --git a/tests/headers/anon_union.hpp b/tests/headers/anon_union.hpp
index 126f6a6e..26bb842f 100644
--- a/tests/headers/anon_union.hpp
+++ b/tests/headers/anon_union.hpp
@@ -1,3 +1,4 @@
+// bindgen-flags: --with-derive-hash
template<typename T>
struct TErrorResult {
enum UnionState {