diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/compound-literal-static.c | 1 | ||||
-rw-r--r-- | tests/compound-literal-static.qbe | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/compound-literal-static.c b/tests/compound-literal-static.c new file mode 100644 index 0000000..1b1afc9 --- /dev/null +++ b/tests/compound-literal-static.c @@ -0,0 +1 @@ +int *x = &(int){2}; diff --git a/tests/compound-literal-static.qbe b/tests/compound-literal-static.qbe new file mode 100644 index 0000000..c18ec1d --- /dev/null +++ b/tests/compound-literal-static.qbe @@ -0,0 +1,2 @@ +data $.L.1 = align 4 { w 2, } +export data $x = align 8 { l $.L.1, } |