OSDN Git Service

* gcc.dg/cpp/defined_trad.c: New test.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Dec 2000 20:27:03 +0000 (20:27 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Dec 2000 20:27:03 +0000 (20:27 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38195 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 58817ad..a86c025 100644 (file)
@@ -1,5 +1,9 @@
 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.
 
 2000-12-09  Joseph S. Myers  <jsm28@cam.ac.uk>
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