blob: fab0adf37eed1107948e675dfc4d8d7403d6467a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* Test -Wframe-larger-than for warning
when the frame size is bigger than specified.
Origin: Seongbae Park <seongbae.park@gmail.com> */
/* { dg-do compile } */
/* { dg-options "-Wframe-larger-than=2048" } */
extern void func(char *);
void foo (void) {
char array[4096];
func(array);
} /* { dg-warning "the frame size of .* bytes is larger than 2048 bytes" } */
|