libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / Wframe-larger-than-2.c
blobd7068d04aef618b600837f8fb8f7da30b889bf8d
1 /* Exercise -Wframe-larger-than= with a byte-size suffix.
2 { dg-do compile }
3 { dg-options "-O -Wframe-larger-than=1KB" }
4 { dg-skip-if "exceeds eBPF stack limit" { bpf-*-* } } */
6 extern void f (void*, ...);
8 void frame_size_912 (void)
10 char a[512];
11 char b[400];
12 f (a, b);
15 void frame_size_1025 (void)
17 char a[512];
18 char b[513];
19 f (a, b);
20 } /* { dg-warning "frame size of \[0-9\]+ bytes is larger than 1024 bytes" } */