1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/* { dg-require-effective-target trampolines } */ /* { dg-additional-options "-std=gnu89" } */ f(n) { int a[n]; int g(i) { return a[i]; } a[1]=4711; return g(1); } main() { if(f(2)!=4711)abort(); exit(0); }