aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/compatible-enum-types.c3
-rw-r--r--tests/compatible-enum-types.qbe1
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/compatible-enum-types.c b/tests/compatible-enum-types.c
new file mode 100644
index 0000000..e320966
--- /dev/null
+++ b/tests/compatible-enum-types.c
@@ -0,0 +1,3 @@
+enum E {A = -1, B};
+enum E x;
+int x;
diff --git a/tests/compatible-enum-types.qbe b/tests/compatible-enum-types.qbe
new file mode 100644
index 0000000..7cf0e40
--- /dev/null
+++ b/tests/compatible-enum-types.qbe
@@ -0,0 +1 @@
+export data $x = align 4 { z 4 }