blob: 5cfa5a74923bb076bb58305ec6f9cb7799a97fce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* 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 } */
}
|