Teach mergefunc that intptr_t is the same width as a pointer. We still can't
[llvm.git] / test / FrontendC / 2004-11-27-VariableSizeInStructure.c
blobbd63ae3b0122c9de0e3ded72c6c37375c91f35c5
1 // RUN: %llvmgcc %s -S -o /dev/null
3 // GCC allows variable sized arrays in structures, crazy!
5 // This is PR360.
7 int sub1(int i, char *pi) {
8 typedef int foo[i];
9 struct bar {foo f1; int f2;} *p = (struct bar *) pi;
10 return p->f2;