1 /* PR middle-end/98871 - Cannot silence -Wmaybe-uninitialized at declaration
4 { dg-options "-O1 -Wall" } */
11 // Verify that suppression works at every inlining level.
13 static int f0 (int *x
)
15 #pragma GCC diagnostic push
16 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
20 #pragma GCC diagnostic pop
23 static int f1 (int *p
, int n
)
26 for (int i
= 0; i
< n
; ++i
) {
37 int a
[] = { 1, 2, 3, 4 };
42 static int g0 (int *x
)
47 static int g1 (int *p
, int n
)
49 #pragma GCC diagnostic push
50 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
53 for (int i
= 0; i
< n
; ++i
) {
61 #pragma GCC diagnostic pop
66 int a
[] = { 1, 2, 3, 4, 5 };
71 static int h0 (int *x
)
76 static int h1 (int *p
, int n
)
79 for (int i
= 0; i
< n
; ++i
) {
90 int a
[] = { 1, 2, 3, 4, 5, 6 };
92 #pragma GCC diagnostic push
93 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
97 #pragma GCC diagnostic pop