| Chris Lattner | 7a887d7 | 2004-11-28 00:39:58 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc %s -S -o /dev/null |
| 2 | |||||
| 3 | // GCC allows variable sized arrays in structures, crazy! | ||||
| 4 | |||||
| 5 | // This is PR360. | ||||
| 6 | |||||
| 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; | ||||
| 11 | } | ||||