mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 15:53:42 +00:00
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:
parent
e5468305a0
commit
07c375d6f6
9
test/CFrontend/2005-10-18-VariableSizedElementCrash.c
Normal file
9
test/CFrontend/2005-10-18-VariableSizedElementCrash.c
Normal 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user