aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/2003-11-01-GlobalUnionInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/2003-11-01-GlobalUnionInit.c')
-rw-r--r--test/CodeGen/2003-11-01-GlobalUnionInit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/2003-11-01-GlobalUnionInit.c b/test/CodeGen/2003-11-01-GlobalUnionInit.c
new file mode 100644
index 000000000000..8290379494b6
--- /dev/null
+++ b/test/CodeGen/2003-11-01-GlobalUnionInit.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
+
+union bdflush_param {
+ struct { int x; } b_un;
+ int y[1];
+} bdf_prm = {{30}};
+