summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/static-local-union.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/static-local-union.c')
-rw-r--r--test/CodeGen/static-local-union.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/static-local-union.c b/test/CodeGen/static-local-union.c
new file mode 100644
index 0000000..f276b20
--- /dev/null
+++ b/test/CodeGen/static-local-union.c
@@ -0,0 +1,4 @@
+// RUN: clang-cc -emit-llvm < %s
+
+int a() {static union{int a;} r[2] = {1,2};return r[1].a;}
+
OpenPOWER on IntegriCloud