aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-04-16 18:51:13 +0000
committerDuncan Sands <baldrick@free.fr>2007-04-16 18:51:13 +0000
commit62dc4dd5226ee47fd2d563b05816a5aae517bc41 (patch)
tree20c340978f514a352567e86143886861c9e634f6 /test
parent6937c9ae6f7067945b921454301232fae04412be (diff)
downloadexternal_llvm-62dc4dd5226ee47fd2d563b05816a5aae517bc41.zip
external_llvm-62dc4dd5226ee47fd2d563b05816a5aae517bc41.tar.gz
external_llvm-62dc4dd5226ee47fd2d563b05816a5aae517bc41.tar.bz2
Testcase for C front-end crash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CFrontend/2007-03-26-BitfieldAfterZeroWidth.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CFrontend/2007-03-26-BitfieldAfterZeroWidth.c b/test/CFrontend/2007-03-26-BitfieldAfterZeroWidth.c
new file mode 100644
index 0000000..9b6a869
--- /dev/null
+++ b/test/CFrontend/2007-03-26-BitfieldAfterZeroWidth.c
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc %s -S -o -
+struct W {};
+struct Y {
+ struct W w;
+ int i:1;
+} __attribute__ ((packed)) y;