New testcase for C++ frontend crash
authorChris Lattner <sabre@nondot.org>
Fri, 17 Oct 2003 05:20:51 +0000 (05:20 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 17 Oct 2003 05:20:51 +0000 (05:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9192 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2003-10-17-BoolBitfields.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2003-10-17-BoolBitfields.cpp b/test/C++Frontend/2003-10-17-BoolBitfields.cpp
new file mode 100644 (file)
index 0000000..e337228
--- /dev/null
@@ -0,0 +1,9 @@
+struct test {
+  bool A : 1;
+  bool B : 1;
+};
+
+void foo(test *T) {
+  T->B = true;
+}
+