aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/g++.dg/parse/named_ops.C (renamed from gcc/testsuite/gcc.dg/cpp/named_ops.c)8
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4ae2f82..ae26d86 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,6 +1,6 @@
2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
- * gcc.dg/cpp/named_ops.c: New test.
+ * g++.dg/parse/named_ops.C: New test.
2002-05-23 Mark Mitchell <mark@codesourcery.com>
diff --git a/gcc/testsuite/gcc.dg/cpp/named_ops.c b/gcc/testsuite/g++.dg/parse/named_ops.C
index d03684a..80e5149 100644
--- a/gcc/testsuite/gcc.dg/cpp/named_ops.c
+++ b/gcc/testsuite/g++.dg/parse/named_ops.C
@@ -1,11 +1,13 @@
/* Copyright (C) 2002 Free Software Foundation, Inc. */
-/* { dg-do preprocess } */
+/* { dg-do compile } */
/* { dg-options -fpreprocessed } */
/* Tests that C++ named ops are still there with -fpreprocessed. */
/* Source: Neil Booth, 23 May 2002. */
-#if 2 xor 2
-#endif
+int main ()
+{
+ return 2 xor 2;
+}