FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / cxxcom1.c
blobc7c51d6e34794fa5f596161b54a6756b66713ca6
1 /* { dg-do preprocess } */
2 /* { dg-options "-pedantic -std=gnu89" } */
4 /* You can't do this in your own code... */
5 // C++ comment is not in C89 { dg-warning "style comment|reported only once" "good warning" }
7 /* ...but we don't bitch about it more than once. */
8 // C++ comment is not in C89 { dg-bogus "style comment" "bad warning" }
11 { dg-final { if ![file exists cxx-comments-1.i] { return } } }
12 { dg-final { set tmp [grep cxx-comments-1.i "is not in C89" line] } }
13 { dg-final { # send_user "$tmp\n" } }
14 { dg-final { if [regexp "is not in C89" $tmp] \{ } }
15 { dg-final { fail "cxx-comments-1: comment strip check" } }
16 { dg-final { \} else \{ } }
17 { dg-final { pass "cxx-comments-1: comment strip check" } }
18 { dg-final { \} } }