summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-17 05:20:51 +0000
committerChris Lattner <sabre@nondot.org>2003-10-17 05:20:51 +0000
commit627ecead391d4046a0428ff10c66effabbcb9520 (patch)
tree22f1cc5f7958d27545dd20d1df8c421d49ea0006 /test
parent888d3bc0cdd727e444773cef92d30f29636ecce8 (diff)
downloadllvm-627ecead391d4046a0428ff10c66effabbcb9520.tar.gz
llvm-627ecead391d4046a0428ff10c66effabbcb9520.tar.bz2
llvm-627ecead391d4046a0428ff10c66effabbcb9520.tar.xz
New testcase for C++ frontend crash
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/C++Frontend/2003-10-17-BoolBitfields.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/C++Frontend/2003-10-17-BoolBitfields.cpp b/test/C++Frontend/2003-10-17-BoolBitfields.cpp
new file mode 100644
index 0000000000..e33722878e
--- /dev/null
+++ b/test/C++Frontend/2003-10-17-BoolBitfields.cpp
@@ -0,0 +1,9 @@
+struct test {
+ bool A : 1;
+ bool B : 1;
+};
+
+void foo(test *T) {
+ T->B = true;
+}
+