[cfe-commits] r137769 - /cfe/trunk/test/CodeGenCXX/2010-06-22-BitfieldInit.cpp
Eric Christopher
echristo at apple.com
Tue Aug 16 14:41:46 PDT 2011
Author: echristo
Date: Tue Aug 16 16:41:46 2011
New Revision: 137769
URL: http://llvm.org/viewvc/llvm-project?rev=137769&view=rev
Log:
Migrate test from llvm/test/FrontendC++.
Added:
cfe/trunk/test/CodeGenCXX/2010-06-22-BitfieldInit.cpp
Added: cfe/trunk/test/CodeGenCXX/2010-06-22-BitfieldInit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2010-06-22-BitfieldInit.cpp?rev=137769&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2010-06-22-BitfieldInit.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/2010-06-22-BitfieldInit.cpp Tue Aug 16 16:41:46 2011
@@ -0,0 +1,20 @@
+// RUN: %clang_cc1 -emit-llvm -g %s -o -
+struct TEST2
+{
+ int subid:32;
+ int :0;
+};
+
+typedef struct _TEST3
+{
+ TEST2 foo;
+ TEST2 foo2;
+} TEST3;
+
+TEST3 test =
+ {
+ {0},
+ {0}
+ };
+
+int main() { return 0; }
More information about the cfe-commits
mailing list