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