PR c++/67273
[official-gcc.git] / gcc / testsuite / c-c++-common / pr68582.c
blob95ca9a4f3b7d1eca5693ce85d2729805c198b845
1 /* PR middle-end/68582 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wunused-function" } */
5 /* We failed to give the warning for functions with TREE_THIS_VOLATILE set. */
7 static void
8 fn1 (void) /* { dg-warning "defined but not used" } */
10 __builtin_abort ();
13 __attribute__ ((noreturn))
14 static void
15 fn2 (void) /* { dg-warning "defined but not used" } */
17 __builtin_abort ();
20 __attribute__ ((volatile))
21 static void
22 fn3 (void) /* { dg-warning "defined but not used" } */
24 __builtin_abort ();