[PR rtl-optimization/115876] Fix one of two ubsan reported issues in new ext-dce...
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / pr61854-4.c
blob3533ae04df9c0692257bfca829ab37e6beaf6cd4
1 /* PR c/61854 */
2 /* { dg-do preprocess } */
3 /* { dg-options "-std=c89" } */
5 void
6 foo (void)
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-message "note: \[^\n\r]*reported only once" "" { target *-*-*} 12 } */