1 // { dg-do run } 2 // { dg-options "" } 3 // { dg-require-effective-target alloca } 4 // Testcase for constructor expressions (GNU extension) 5 6 struct Any { 7 int *type; 8 int *addr; 9 }; 10 11 int i, j; 12 13 int main()14main () { 15 struct Any *ap = (struct Any *) 16 __builtin_alloca (sizeof(struct Any)); 17 *ap = ((struct Any){ &i, &j }) ; 18 19 if (ap->type != &i || ap->addr != &j) 20 return 1; 21 return 0; 22 } 23