truefalse.cpp: Move it to ...
authorMark Mitchell <mark@codesourcery.com>
Mon, 2 Jun 2003 15:25:50 +0000 (15:25 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 2 Jun 2003 15:25:50 +0000 (15:25 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp/truefalse.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/cpp.exp
gcc/testsuite/gcc.dg/cpp/truefalse.cpp [deleted file]

index ee9f802816c23a692f99bce415a0997c17acfa30..a56f2d5fdacf88cf8ba2e9e3d8395817fde6860b 100644 (file)
@@ -1,3 +1,9 @@
+2003-06-02  Mark Mitchell  <mark@codesourcery.com>
+
+       * 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  <ljrittle@acm.org>
        
        * 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 (file)
index 0000000..d852d4e
--- /dev/null
@@ -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
index 47c20ffb201bc42d26b000d774ee7282994fcd5a..960a29182d0d496d2513814e2ba3658decee3ed0 100644 (file)
@@ -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 (file)
index d852d4e..0000000
+++ /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