1 /* Verify that -Warray-bounds suppression via #pragma GCC diagnostic
2 works at any call site in an inlining stack
4 { dg-options "-O2 -Wall" } */
8 void f1 (int *p
, int i
)
10 #pragma GCC diagnostic push
12 # pragma GCC diagnostic ignored "-Warray-bounds"
15 #pragma GCC diagnostic pop
18 void f2 (int *p
, int i
)
20 #pragma GCC diagnostic push
22 # pragma GCC diagnostic ignored "-Warray-bounds"
25 #pragma GCC diagnostic pop
28 void f3 (int *p
, int i
)
30 #pragma GCC diagnostic push
32 # pragma GCC diagnostic ignored "-Warray-bounds"
35 #pragma GCC diagnostic pop
40 #pragma GCC diagnostic push
42 # pragma GCC diagnostic ignored "-Warray-bounds"
45 #pragma GCC diagnostic pop