repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* gcc.dg/predict-12.c: New testcase.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
cpp
/
pr61854-4.c
blob
5cfa5a74923bb076bb58305ec6f9cb7799a97fce
1
/* PR c/61854 */
2
/* { dg-do preprocess } */
3
/* { dg-options "-std=c89" } */
4
5
void
6
foo
(
void
)
7
{
8
#if 0
9
// Do not error here.
10
#endif
11
#if 1
12
// But error here.
13
#endif
14
/* { dg-error "C\\+\\+ style comments are not allowed in ISO C90" "comments" { target *-*-*} 12 } */
15
/* { dg-error "reported only once" "" { target *-*-*} 12 } */
16
}