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

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */

#pragma GCC push_options
#pragma GCC optimize ("-fno-lto") /* { dg-warning "bad option" } */
int main(void){return 0;}
#pragma GCC pop_options

/* ???  The FEs still apply the pragma string as optimize attribute to
   all functions thus the diagnostic will be repeated for each function
   affected.  */
/* { dg-message "bad option" "" { target *-*-* } 0 } */