summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-08-19 21:51:03 +0000
committerEric Christopher <echristo@apple.com>2011-08-19 21:51:03 +0000
commit59de6831d7150eef2420532b067b1dda02ae0d62 (patch)
treec66bb0d849b4f81776a29fd4488247afc94e1fa4 /test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp
parent3592f64d12e1984cc5beba5c8ee73f96171094b8 (diff)
Migrate 2009-08-05-ZeroInitWidth.cpp from llvm/test/FrontendC++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp')
-rw-r--r--test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp b/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp
new file mode 100644
index 0000000000..4404d4a8d5
--- /dev/null
+++ b/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 -emit-llvm %s -o -
+// rdar://7114564
+struct A {
+ unsigned long long : (sizeof(unsigned long long) * 8) - 16;
+};
+struct B {
+ A a;
+};
+struct B b = {
+ {}
+};