2018-01-10 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / Wpragmas-1.c
blob139519ea172b627fc143d08196ae56b3c51d60ee
1 /* { dg-do compile } */
3 #pragma GCC push_options
4 #pragma GCC optimize ("-fno-lto") /* { dg-warning "bad option" } */
5 int main(void){return 0;}
6 #pragma GCC pop_options
8 /* ??? The FEs still apply the pragma string as optimize attribute to
9 all functions thus the diagnostic will be repeated for each function
10 affected. */
11 /* { dg-message "bad option" "" { target *-*-* } 0 } */