Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/Wpragmas-1.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
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 } */