diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/initializer-member-static.c | 2 | ||||
-rw-r--r-- | test/initializer-member-static.qbe | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test/initializer-member-static.c b/test/initializer-member-static.c new file mode 100644 index 0000000..7433a33 --- /dev/null +++ b/test/initializer-member-static.c @@ -0,0 +1,2 @@ +extern struct { int x; } s; +int *p = &s.x; diff --git a/test/initializer-member-static.qbe b/test/initializer-member-static.qbe new file mode 100644 index 0000000..c603c64 --- /dev/null +++ b/test/initializer-member-static.qbe @@ -0,0 +1 @@ +export data $p = align 8 { l $s + 0, } |