aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/cxxcom2.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-06-02 19:21:15 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-06-02 19:21:15 +0000
commit5a9f05f2ea3283d0be7884d04df6ba2088a0ec7d (patch)
treeb9ac7ba20a1901ce01adc13a973b730607c0a573 /gcc/testsuite/gcc.dg/cpp/cxxcom2.c
parent245115a4b4946f9ab14e2c012f83d1a82c651607 (diff)
downloadgcc-5a9f05f2ea3283d0be7884d04df6ba2088a0ec7d.zip
gcc-5a9f05f2ea3283d0be7884d04df6ba2088a0ec7d.tar.gz
gcc-5a9f05f2ea3283d0be7884d04df6ba2088a0ec7d.tar.bz2
scanasm.exp (dg-scan): New function, factored out of ...
* lib/scanasm.exp (dg-scan): New function, factored out of ... (scan-assembler): ... here. Use dg-scan. (scan-assembler-not): Likewise. (scan-file): New function. (scan-file-not): Likewise. * gcc.dg/cpp/19990228-1.c: Use scan-file and/or scan-file-not. * gcc.dg/cpp/_Pragma4.c: Likewise. * gcc.dg/cpp/_Pragma5.c: Likewise. * gcc.dg/cpp/avoidpaste1.c: Likewise. * gcc.dg/cpp/avoidpaste2.c: Likewise. * gcc.dg/cpp/cmdlne-C2.c: Likewise. * gcc.dg/cpp/cmdlne-P.c: Likewise. * gcc.dg/cpp/cmdlne-dD-M.c: Likewise. * gcc.dg/cpp/cmdlne-dD-dM.c: Likewise. * gcc.dg/cpp/cmdlne-dI-M.c: Likewise. * gcc.dg/cpp/cmdlne-dM-M.c: Likewise. * gcc.dg/cpp/cmdlne-dM-dD.c: Likewise. * gcc.dg/cpp/cmdlne-dN-M.c: Likewise. * gcc.dg/cpp/cxxcom1.c: Likewise. * gcc.dg/cpp/line1.c: Likewise. * gcc.dg/cpp/maccom1.c: Likewise. * gcc.dg/cpp/maccom2.c: Likewise. * gcc.dg/cpp/maccom3.c: Likewise. * gcc.dg/cpp/maccom4.c: Likewise. * gcc.dg/cpp/maccom5.c: Likewise. * gcc.dg/cpp/maccom6.c: Likewise. * gcc.dg/cpp/multiline.c: Likewise. * gcc.dg/cpp/spacing1.c: Likewise. * gcc.dg/cpp/spacing2.c: Likewise. * gcc.dg/cpp/trad/cmdlne-C2.c: Likewise. * gcc.dg/cpp/trad/maccom1.c: Likewise. * gcc.dg/cpp/trad/maccom2.c: Likewise. * gcc.dg/cpp/trad/maccom3.c: Likewise. * gcc.dg/cpp/trad/maccom4.c: Likewise. * gcc.dg/cpp/trad/maccom6.c: Likewise. * gcc.dg/cpp/cxxcom2.c: Likewise. * gcc.dg/cpp/cxxcom2.h: New file. From-SVN: r67347
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/cxxcom2.c')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cxxcom2.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/cxxcom2.c b/gcc/testsuite/gcc.dg/cpp/cxxcom2.c
index f0fb2d0..0dbb8f2 100644
--- a/gcc/testsuite/gcc.dg/cpp/cxxcom2.c
+++ b/gcc/testsuite/gcc.dg/cpp/cxxcom2.c
@@ -1,20 +1,7 @@
/* { dg-do preprocess } */
-/* { dg-options "-pedantic -std=c89" } */
+/* { dg-options "-pedantic -std=c89 -Wall" } */
-/* This is an extension and therefore gets a warning. */
-#line 5 "cxx-comments-2.c" 3 /* { dg-warning "extra tokens" "#line extension" } */
+#include "cxxcom2.h"
-/* A system header may contain C++ comments irrespective of mode. */
-// C++ comment is not in C89 { dg-bogus "style comment" "bad warning" }
-
-/*
- { dg-final { if ![file exists cxx-comments-2.i] { return } } }
- { dg-final { set tmp [grep cxx-comments-2.i "is not in C89" line] } }
- { dg-final { # send_user "$tmp\n" } }
- { dg-final { if [regexp "is not in C89" $tmp] \{ } }
- { dg-final { fail "cxx-comments-2: comment strip check" } }
- { dg-final { \} else \{ } }
- { dg-final { pass "cxx-comments-2: comment strip check" } }
- { dg-final { \} } }
-*/
+/* { dg-final { scan-file-not cxxcom2.i "is not in C89" } } */