* gcc.dg/cpp/include2.c: New tests.

From-SVN: r37251
This commit is contained in:
Neil Booth 2000-11-04 11:14:54 +00:00 committed by Neil Booth
parent 16eb278877
commit e8ecb16d5e
2 changed files with 19 additions and 0 deletions

View 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.

View File

@ -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 } */