1 /* { dg-do run { target { *-*-linux* } } } */ 2 /* { dg-require-stack-check "" } */ 3 /* { dg-options "-fstack-check" } */ 4 main(void)5int main(void) 6 { 7 char *p; 8 if (1) 9 { 10 char i[48]; 11 p = __builtin_alloca(8); 12 p[0] = 1; 13 } 14 15 if (1) 16 { 17 char i[48], j[64]; 18 j[32] = 0; 19 } 20 21 return !p[0]; 22 } 23