view gcc/testsuite/gcc.dg/cpp/pr61854-4.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
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-message "note: \[^\n\r]*reported only once" ""  { target *-*-*} 12 } */
}