1 /* Exercise -Wframe-larger-than= with a byte-size suffix. 2 { dg-do compile } 3 { dg-options "-O -Wframe-larger-than=1KB" } */ 4 5 extern void f (void*, ...); 6 frame_size_912(void)7void frame_size_912 (void) 8 { 9 char a[512]; 10 char b[400]; 11 f (a, b); 12 } 13 frame_size_1025(void)14void frame_size_1025 (void) 15 { 16 char a[512]; 17 char b[513]; 18 f (a, b); 19 } /* { dg-warning "frame size of \[0-9\]+ bytes is larger than 1024 bytes" } */ 20