summaryrefslogtreecommitdiff
path: root/tests/headers/enum.h
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2020-08-24 19:55:48 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-08-25 00:38:57 +0200
commit428189cb41707713837982c21b694a68d276c92e (patch)
treea21f7a6ebfd88b79184ab4f7b330a2f169272670 /tests/headers/enum.h
parentbef180d353ca5b3cbc11e70588874af6a5e59b1b (diff)
tests: Improve enum tests to avoid duplication, and add a test for #1880
Diffstat (limited to 'tests/headers/enum.h')
-rw-r--r--tests/headers/enum.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/headers/enum.h b/tests/headers/enum.h
index f04c213e..901b8058 100644
--- a/tests/headers/enum.h
+++ b/tests/headers/enum.h
@@ -1,4 +1,12 @@
-// bindgen-flags: --rustified-enum ".*"
+// A few tests for enum-related issues that should be tested with all the enum
+// representations.
+
+struct foo {
+ enum {
+ FOO_A,
+ FOO_B,
+ } member;
+};
enum Foo {
Bar = 0,