add a testcase for my llvm-gcc hack.
authorChris Lattner <sabre@nondot.org>
Thu, 6 Aug 2009 06:18:52 +0000 (06:18 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 6 Aug 2009 06:18:52 +0000 (06:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78289 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC++/2009-08-05-ZeroInitWidth.cpp [new file with mode: 0644]

diff --git a/test/FrontendC++/2009-08-05-ZeroInitWidth.cpp b/test/FrontendC++/2009-08-05-ZeroInitWidth.cpp
new file mode 100644 (file)
index 0000000..bc862e7
--- /dev/null
@@ -0,0 +1,12 @@
+// RUN: %llvmgxx -c -emit-llvm %s -o -
+// rdar://7114564
+struct A {
+  unsigned long long : (sizeof(unsigned long long) * 8) - 16;
+};
+struct B {
+  A a;
+};
+struct B b = {
+  {}
+};
+