comparison gcc/testsuite/gcc.dg/Wpragmas-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* { dg-do compile } */
2
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
7
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 } */