This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cpplib: More traditional tests


Tests for recent bugfixes and -dD.

Neil.

	* gcc.dg/cpp/trad/cmdlne-dD.c, gcc.dg/cpp/trad/cmdlne-dM.c,
	gcc.dg/cpp/trad/include.c: New tests.


Index: gcc.dg/cpp/trad/cmdlne-dD.c
===================================================================
RCS file: gcc.dg/cpp/trad/cmdlne-dD.c
diff -N gcc.dg/cpp/trad/cmdlne-dD.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gcc.dg/cpp/trad/cmdlne-dD.c	1 Jul 2002 18:50:55 -0000
@@ -0,0 +1,9 @@
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.  */
+
+/* { dg-do preprocess } */
+/* { dg-options "-dD -traditional-cpp" } */
+
+/* Test -dD does not fail.  */
+
+#define objlike obj like
+#define funlike(like) fun like
Index: gcc.dg/cpp/trad/cmdlne-dM.c
===================================================================
RCS file: gcc.dg/cpp/trad/cmdlne-dM.c
diff -N gcc.dg/cpp/trad/cmdlne-dM.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gcc.dg/cpp/trad/cmdlne-dM.c	1 Jul 2002 18:50:55 -0000
@@ -0,0 +1,9 @@
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.  */
+
+/* { dg-do preprocess } */
+/* { dg-options "-dM -traditional-cpp" } */
+
+/* Test -dM does not fail.  */
+
+#define objlike obj like
+#define funlike(like) fun like
Index: gcc.dg/cpp/trad/include.c
===================================================================
RCS file: gcc.dg/cpp/trad/include.c
diff -N gcc.dg/cpp/trad/include.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gcc.dg/cpp/trad/include.c	1 Jul 2002 18:50:55 -0000
@@ -0,0 +1,9 @@
+/* Copyright (c) 2002 Free Software Foundation Inc.  */
+
+/* Test that macros are not expanded in the <> quotes of #inlcude.  */
+
+/* { dg-do preprocess } */
+
+#define __STDC__ 1	/* Stop complaints about non-ISO compilers.  */
+#define stdio 1
+#include <stdio.h>		/* { dg-bogus "o such file or directory" } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]