blob: 139519ea172b627fc143d08196ae56b3c51d60ee [file] [log] [blame]
/* { 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 } */