[llvm-branch-commits] [llvm-branch] r69904 - /llvm/branches/Apple/Dib/test/FrontendC++/2009-04-23-bool2.cpp

Bill Wendling isanbard at gmail.com
Thu Apr 23 11:12:37 PDT 2009


Author: void
Date: Thu Apr 23 13:12:37 2009
New Revision: 69904

URL: http://llvm.org/viewvc/llvm-project?rev=69904&view=rev
Log:
--- Merging (from foreign repository) r69901 into '.':
A    test/FrontendC++/2009-04-23-bool2.cpp

Testcase for 69795.

Added:
    llvm/branches/Apple/Dib/test/FrontendC++/2009-04-23-bool2.cpp

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

==============================================================================
--- llvm/branches/Apple/Dib/test/FrontendC++/2009-04-23-bool2.cpp (added)
+++ llvm/branches/Apple/Dib/test/FrontendC++/2009-04-23-bool2.cpp Thu Apr 23 13:12:37 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-branch-commits mailing list