Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/Wpragmas-1.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +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 } */