Testcase that crashes llvmgcc in type layout

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23806 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-10-19 00:52:21 +00:00
parent e5468305a0
commit 07c375d6f6

View File

@ -0,0 +1,9 @@
// RUN: %llvmgcc %s -S -o -
// XFAIL: *
int sub1(int i, char *pi) {
typedef int foo[i];
struct bar {foo f1; int f2:3; int f3:4} *p = (struct bar *) pi;
xxx(p->f1);
return p->f3;
}