diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/generic.c | 6 | ||||
-rw-r--r-- | test/generic.qbe | 1 |
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, } |