blob: bd63ae3b0122c9de0e3ded72c6c37375c91f35c5 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgcc %s -S -o /dev/null
2
3// GCC allows variable sized arrays in structures, crazy!
4
5// This is PR360.
6
7int 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;
11}