[cfe-commits] r138097 - /cfe/trunk/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp
Eric Christopher
echristo at apple.com
Fri Aug 19 14:51:03 PDT 2011
Author: echristo
Date: Fri Aug 19 16:51:03 2011
New Revision: 138097
URL: http://llvm.org/viewvc/llvm-project?rev=138097&view=rev
Log:
Migrate 2009-08-05-ZeroInitWidth.cpp from llvm/test/FrontendC++.
Added:
cfe/trunk/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp
Added: cfe/trunk/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp?rev=138097&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp Fri Aug 19 16:51:03 2011
@@ -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 = {
+ {}
+};
More information about the cfe-commits
mailing list