* gcc.dg/cpp/defined_trad.c: New test.
authorNeil Booth <neilb@earthling.net>
Mon, 11 Dec 2000 20:27:03 +0000 (20:27 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Mon, 11 Dec 2000 20:27:03 +0000 (20:27 +0000)
From-SVN: r38195

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/defined_trad.c [new file with mode: 0644]

index 58817ad7c82729f1a1617d9fd82e6e4deb973326..a86c025e85e87ad6efdfa9fd48692c5f13049f5e 100644 (file)
@@ -1,3 +1,7 @@
+2000-12-11  Neil Booth  <neilb@earthling.net>
+
+       * gcc.dg/cpp/defined_trad.c
+
 2000-12-11  Neil Booth  <neilb@earthling.net>
 
         * gcc.dg/cpp/if-2.c: Separate tests so that which failed is obvious.
diff --git a/gcc/testsuite/gcc.dg/cpp/defined_trad.c b/gcc/testsuite/gcc.dg/cpp/defined_trad.c
new file mode 100644 (file)
index 0000000..5f5a813
--- /dev/null
@@ -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