diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-06-02 15:25:50 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-06-02 15:25:50 +0000 |
commit | 2a9e3b720c1f7bb81a9ece89422593d5a131a4fe (patch) | |
tree | 33775b9b33af0ad2c05fbcea74b87c5054193129 /gcc/testsuite/gcc.dg | |
parent | 4c2da7f2a7a9c6696931db5f5954240bfa7578ee (diff) | |
download | gcc-2a9e3b720c1f7bb81a9ece89422593d5a131a4fe.zip gcc-2a9e3b720c1f7bb81a9ece89422593d5a131a4fe.tar.gz gcc-2a9e3b720c1f7bb81a9ece89422593d5a131a4fe.tar.bz2 |
truefalse.cpp: Move it to ...
* gcc.dg/cpp/truefalse.cpp: Move it to ...
* g++.dg/cpp/truefalse.C: Here.
* gcc.dg/cpp/cpp.exp: Remove scanning of ".cpp" files.
From-SVN: r67333
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/cpp.exp | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/truefalse.cpp | 17 |
2 files changed, 2 insertions, 19 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/cpp.exp b/gcc/testsuite/gcc.dg/cpp/cpp.exp index 47c20ff..960a291 100644 --- a/gcc/testsuite/gcc.dg/cpp/cpp.exp +++ b/gcc/testsuite/gcc.dg/cpp/cpp.exp @@ -1,4 +1,4 @@ -# Copyright (C) 1997, 2000 Free Software Foundation, Inc. +# Copyright (C) 1997, 2000, 2003 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -36,7 +36,7 @@ if ![info exists DEFAULT_CFLAGS] then { dg-init # Main loop. -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{c,cpp,S} ]] \ +dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{c,S} ]] \ "" $DEFAULT_CFLAGS # All done. diff --git a/gcc/testsuite/gcc.dg/cpp/truefalse.cpp b/gcc/testsuite/gcc.dg/cpp/truefalse.cpp deleted file mode 100644 index d852d4e..0000000 --- a/gcc/testsuite/gcc.dg/cpp/truefalse.cpp +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright (C) 2003 Free Software Foundation, Inc. */ - -/* Source: Neil Booth, 18 Apr 2003. */ - -/* { dg-do preprocess } */ -/* { dg-options "-ansi -pedantic -Wundef" } */ - -/* Check that for C++ we handle true and false correctly, and do not - treat them as undefined identifiers. */ - -#if true /* { dg-bogus "is not defined" } */ -#error foo /* { dg-error "foo" } */ -#endif - -#if false /* { dg-bogus "is not defined" } */ -#error foo /* { dg-bogus "foo" } */ -#endif |