diff options
author | Dale Johannesen <dalej@apple.com> | 2009-04-23 18:04:04 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-04-23 18:04:04 +0000 |
commit | 466af3eb461b017b731df1cf743a8d7fd9a168aa (patch) | |
tree | c7642caa7f5e4759aced7e2f15af455f7067b222 | |
parent | 9c03f682064dd57b5a92ad6849d537719b6f914e (diff) | |
download | bcm5719-llvm-466af3eb461b017b731df1cf743a8d7fd9a168aa.tar.gz bcm5719-llvm-466af3eb461b017b731df1cf743a8d7fd9a168aa.zip |
Testcase for 69795.
llvm-svn: 69901
-rw-r--r-- | llvm/test/FrontendC++/2009-04-23-bool2.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/FrontendC++/2009-04-23-bool2.cpp b/llvm/test/FrontendC++/2009-04-23-bool2.cpp new file mode 100644 index 00000000000..8614a37d36c --- /dev/null +++ b/llvm/test/FrontendC++/2009-04-23-bool2.cpp @@ -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; +} |