aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/pr61854-c94.c
blob: a8c301d406c2f9d8536ae34a6e90d2113c4f6a5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c/61854 */
/* { dg-do preprocess } */
/* { dg-options "-std=iso9899:199409" } */

void
foo (void)
{
  // 1st
  /* { dg-error "C\\+\\+ style comments are not allowed in ISO C90" "comments"  { target *-*-*} .-1 } */
  /* { dg-message "note: \[^\n\r]*reported only once" ""  { target *-*-*} .-2 } */
  // 2nd
  // 3rd
}