]> gcc.gnu.org Git - gcc.git/commitdiff
* gcc.dg/cpp/include2.c: New tests.
authorNeil Booth <neilb@earthling.net>
Sat, 4 Nov 2000 11:14:54 +0000 (11:14 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sat, 4 Nov 2000 11:14:54 +0000 (11:14 +0000)
From-SVN: r37251

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

index 3644d57d19fdeb881727f45d35df21c040d6e2db..e09ae59887e37d1aa5317fadfc395bead03ad321 100644 (file)
@@ -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 (file)
index 0000000..6a67f76
--- /dev/null
@@ -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 } */
This page took 0.080521 seconds and 5 git commands to generate.