PR target/83368
[official-gcc.git] / gcc / testsuite / gcc.dg / Wframe-larger-than.c
blobfab0adf37eed1107948e675dfc4d8d7403d6467a
1 /* Test -Wframe-larger-than for warning
2 when the frame size is bigger than specified.
3 Origin: Seongbae Park <seongbae.park@gmail.com> */
5 /* { dg-do compile } */
6 /* { dg-options "-Wframe-larger-than=2048" } */
8 extern void func(char *);
10 void foo (void) {
11 char array[4096];
12 func(array);
13 } /* { dg-warning "the frame size of .* bytes is larger than 2048 bytes" } */