[cfe-commits] r138110 - /cfe/trunk/test/CodeGenCXX/2009-04-23-bool2.cpp
Eric Christopher
echristo at apple.com
Fri Aug 19 15:16:21 PDT 2011
Author: echristo
Date: Fri Aug 19 17:16:21 2011
New Revision: 138110
URL: http://llvm.org/viewvc/llvm-project?rev=138110&view=rev
Log:
Migrate 2009-04-23-bool2.cpp from llvm/test/FrontendC++.
Added:
cfe/trunk/test/CodeGenCXX/2009-04-23-bool2.cpp
Added: cfe/trunk/test/CodeGenCXX/2009-04-23-bool2.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2009-04-23-bool2.cpp?rev=138110&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2009-04-23-bool2.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/2009-04-23-bool2.cpp Fri Aug 19 17:16:21 2011
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
+// g++.old-deja/g++.jason/bool2.C from gcc testsuite.
+// Crashed before 67975 went in.
+struct F {
+ bool b1 : 1;
+ bool b2 : 7;
+};
+
+int main()
+{
+ F f = { true, true };
+
+ if (int (f.b1) != 1)
+ return 1;
+}
More information about the cfe-commits
mailing list