Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/cpp/pr61854-c90.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
111 | 1 /* PR c/61854 */ |
2 /* { dg-do preprocess } */ | |
3 /* { dg-options "-std=iso9899:1990" } */ | |
4 | |
5 void | |
6 foo (void) | |
7 { | |
8 // 1st | |
9 /* { dg-error "C\\+\\+ style comments are not allowed in ISO C90" "comments" { target *-*-*} .-1 } */ | |
131 | 10 /* { dg-message "note: \[^\n\r]*reported only once" "" { target *-*-*} .-2 } */ |
111 | 11 // 2nd |
12 // 3rd | |
13 } |