OSDN Git Service

* gcc.dg/20001023-1.c, gcc.dg/20001108-1.c, gcc.dg/20001117-1.c,
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / cxxcom1.c
1 /* { dg-do preprocess } */
2 /* { dg-options "-pedantic -std=gnu89" } */
3
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" }
6
7 /* ...but we don't bitch about it more than once.  */
8 // C++ comment is not in C89  { dg-bogus "style comment" "bad warning" }
9
10 /* { dg-final { scan-file-not cxxcom1.i "is not in C89" } } */
11