Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/cpp/pr61854-4.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
line wrap: on
line source
/* PR c/61854 */ /* { dg-do preprocess } */ /* { dg-options "-std=c89" } */ void foo (void) { #if 0 // Do not error here. #endif #if 1 // But error here. #endif /* { dg-error "C\\+\\+ style comments are not allowed in ISO C90" "comments" { target *-*-*} 12 } */ /* { dg-error "reported only once" "" { target *-*-*} 12 } */ }