aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-11-04 11:14:54 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-11-04 11:14:54 +0000
commite8ecb16d5e24eec7539d5b3f37202cb9699f56cf (patch)
tree21408915870f490ea2328f9a7a9161b17319c390 /gcc/testsuite
parent16eb27887703461f7f215a4ea8d3227c95ec1e12 (diff)
downloadgcc-e8ecb16d5e24eec7539d5b3f37202cb9699f56cf.zip
gcc-e8ecb16d5e24eec7539d5b3f37202cb9699f56cf.tar.gz
gcc-e8ecb16d5e24eec7539d5b3f37202cb9699f56cf.tar.bz2
* gcc.dg/cpp/include2.c: New tests.
From-SVN: r37251
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/include2.c15
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 3644d57..e09ae59 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2000-11-04 Neil Booth <neilb@earthling.net>
+
+ * gcc.dg/cpp/include2.c: New tests.
+
Fri Nov 3 13:32:14 2000 Mark P Mitchell <mark@codesourcery.com>
* lib/g++.exp (g++_set_ld_library_path): New function.
diff --git a/gcc/testsuite/gcc.dg/cpp/include2.c b/gcc/testsuite/gcc.dg/cpp/include2.c
new file mode 100644
index 0000000..6a67f76
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/include2.c
@@ -0,0 +1,15 @@
+/* Copyright (C) 2000 Free Software Foundation, Inc. */
+
+/* { dg-do preprocess } */
+
+/* Tests that #include does not allow the terminating '>' or '"' to be
+ escaped, as per the standard. */
+
+/* Source: Neil Booth, 4 Nov 2000. */
+
+#include <silly\>> /* { dg-warning "extra tokens" "" } */
+#include "silly\"" /* { dg-error "missing" "" } */
+
+/* { dg-error "No such file" "" { target *-*-* } 10 } */
+/* { dg-error "No such file" "" { target *-*-* } 11 } */
+/* { dg-warning "extra tokens" "" { target *-*-* } 11 } */