Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.rfg/00324_02-.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
// { dg-do assemble } // Another simple one. GCC corerctly gives errors for this code when the // - -pedantic-errors options is used. g++ doesn't. void f (int i) { } void (*fp)(void); int i; void test () { i ? f : fp; // { dg-error "6:conditional expression|invalid conversion" } }