This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
tradcpp testcase
- To: gcc-patches at gcc dot gnu dot org
- Subject: tradcpp testcase
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Mon, 11 Dec 2000 20:25:46 +0000
Forgot to post this.
Neil.
* gcc.dg/cpp/defined_trad.c: New test.
Index: defined_trad.c
===================================================================
RCS file: defined_trad.c
diff -N defined_trad.c
--- /dev/null Tue May 5 13:32:27 1998
+++ defined_trad.c Mon Dec 11 12:24:55 2000
@@ -0,0 +1,12 @@
+/* Copyright (C) 2000 Free Software Foundation, Inc. */
+
+/* { dg-do preprocess } */
+/* { dg-options "-traditional" } */
+
+/* Tests tradcpp0 with defined. */
+
+/* Source: Neil Booth, 11 Dec 2000. */
+
+#if defined REGPARMS
+#error REGPARMS should not be defined
+#endif