PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pure-3.c
blob2eeb8a30e9c8333f299de51b5a90f871fa40a1e2
1 /* PR tree-optimization/83559 - -Wsuggest-attribute=const conflicts with
2 -Wattributes warning about const attribute on function returning void
3 { dg-do compile { target nonpic } }
4 { dg-options "-O2 -Wsuggest-attribute=pure" } */
6 int global;
8 int f_i_v (void) /* { dg-warning "candidate for attribute .pure." } */
10 return global;
13 int f_i () /* { dg-warning "candidate for attribute .pure." } */
15 return global;
18 void f_v_v (void) /* { dg-bogus "candidate" } */
22 void f_v () /* { dg-bogus "candidate" } */