1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Testcase that crashes llvmgcc in type layout

llvm-svn: 23806
This commit is contained in:
Chris Lattner 2005-10-19 00:52:21 +00:00
parent 6416c5627d
commit fb8bc57259

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;
}