aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/generic.c6
-rw-r--r--test/generic.qbe1
2 files changed, 7 insertions, 0 deletions
diff --git a/test/generic.c b/test/generic.c
new file mode 100644
index 0000000..d04bc90
--- /dev/null
+++ b/test/generic.c
@@ -0,0 +1,6 @@
+int x = _Generic(123,
+ const int: 1,
+ unsigned: 2,
+ int: 3,
+ int *: 4
+);
diff --git a/test/generic.qbe b/test/generic.qbe
new file mode 100644
index 0000000..6b57b3e
--- /dev/null
+++ b/test/generic.qbe
@@ -0,0 +1 @@
+export data $x = align 4 { w 3, }