From: Mark Mitchell Date: Mon, 2 Jun 2003 15:25:50 +0000 (+0000) Subject: truefalse.cpp: Move it to ... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a9e3b720c1f7bb81a9ece89422593d5a131a4fe;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ee9f802816c..a56f2d5fdac 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2003-06-02 Mark Mitchell + + * gcc.dg/cpp/truefalse.cpp: Move it to ... + * g++.dg/cpp/truefalse.C: Here. + * gcc.dg/cpp/cpp.exp: Remove scanning of ".cpp" files. + 2003-06-01 Loren James Rittle * gcc.dg/cpp/redef3.c: New file. diff --git a/gcc/testsuite/g++.dg/cpp/truefalse.C b/gcc/testsuite/g++.dg/cpp/truefalse.C new file mode 100644 index 00000000000..d852d4e2f21 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp/truefalse.C @@ -0,0 +1,17 @@ +/* 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 diff --git a/gcc/testsuite/gcc.dg/cpp/cpp.exp b/gcc/testsuite/gcc.dg/cpp/cpp.exp index 47c20ffb201..960a29182d0 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 d852d4e2f21..00000000000 --- 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