summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2009-06-14-anonymous-union-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2009-06-14-anonymous-union-init.c')
-rw-r--r--clang/test/CodeGen/2009-06-14-anonymous-union-init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2009-06-14-anonymous-union-init.c b/clang/test/CodeGen/2009-06-14-anonymous-union-init.c
new file mode 100644
index 0000000..8ccd7bc
--- /dev/null
+++ b/clang/test/CodeGen/2009-06-14-anonymous-union-init.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -emit-llvm < %s | grep "zeroinitializer, i16 16877"
+// PR4390
+struct sysfs_dirent {
+ union { struct sysfs_elem_dir {} s_dir; };
+ unsigned short s_mode;
+};
+struct sysfs_dirent sysfs_root = { {}, 16877 };