Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/Werror-12.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-Wattributes -Waddress" } */ | |
3 | |
4 /* Make sure #pragma can override -Wfoo. */ | |
5 | |
6 #pragma GCC diagnostic ignored "-Waddress" | |
7 | |
8 void grill (); | |
9 void __attribute__((dj)) bar() { } /* { dg-warning "attribute directive ignored" } */ | |
10 | |
11 int i; | |
12 | |
13 void | |
14 foo () | |
15 { | |
16 if (&i) /* { dg-bogus "true" } */ | |
17 grill (); | |
18 } |