OSDN Git Service

* gcc.dg/cpp/trad/cmdlne-dD.c, gcc.dg/cpp/trad/cmdlne-dM.c,
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jul 2002 19:41:52 +0000 (19:41 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jul 2002 19:41:52 +0000 (19:41 +0000)
gcc.dg/cpp/trad/include.c: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55146 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/trad/cmdlne-dD.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/trad/cmdlne-dM.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/trad/include.c [new file with mode: 0644]

index 2d7f830..d601f14 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
+
+       * gcc.dg/cpp/trad/cmdlne-dD.c, gcc.dg/cpp/trad/cmdlne-dM.c,
+       gcc.dg/cpp/trad/include.c: New tests.
+
 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
 
        PR target/7177
diff --git a/gcc/testsuite/gcc.dg/cpp/trad/cmdlne-dD.c b/gcc/testsuite/gcc.dg/cpp/trad/cmdlne-dD.c
new file mode 100644 (file)
index 0000000..1e4c8c8
--- /dev/null
@@ -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
diff --git a/gcc/testsuite/gcc.dg/cpp/trad/cmdlne-dM.c b/gcc/testsuite/gcc.dg/cpp/trad/cmdlne-dM.c
new file mode 100644 (file)
index 0000000..0fb5bd9
--- /dev/null
@@ -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
diff --git a/gcc/testsuite/gcc.dg/cpp/trad/include.c b/gcc/testsuite/gcc.dg/cpp/trad/include.c
new file mode 100644 (file)
index 0000000..9ca184b
--- /dev/null
@@ -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" } */