[llvm-commits] [llvm] r69901 - /llvm/trunk/test/FrontendC++/2009-04-23-bool2.cpp

Dale Johannesen dalej at apple.com
Thu Apr 23 11:04:04 PDT 2009


Author: johannes
Date: Thu Apr 23 13:04:04 2009
New Revision: 69901

URL: http://llvm.org/viewvc/llvm-project?rev=69901&view=rev
Log:
Testcase for 69795.


Added:
    llvm/trunk/test/FrontendC++/2009-04-23-bool2.cpp

Added: llvm/trunk/test/FrontendC++/2009-04-23-bool2.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC%2B%2B/2009-04-23-bool2.cpp?rev=69901&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC++/2009-04-23-bool2.cpp (added)
+++ llvm/trunk/test/FrontendC++/2009-04-23-bool2.cpp Thu Apr 23 13:04:04 2009
@@ -0,0 +1,15 @@
+// RUN: %llvmgxx -c -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 llvm-commits mailing list