* gcc.dg/predict-12.c: New testcase.
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / include2a.c
blob9370d0944e6e664a4f535410089276a29ab2f902
1 /* Copyright (C) 2000 Free Software Foundation, Inc. */
3 /* { dg-do preprocess } */
5 /* Tests that #include does not allow the terminating '>' or '"' to be
6 escaped, as per the standard. */
8 /* Source: Neil Booth, 4 Nov 2000. */
10 #include "silly\"" /* { dg-error "extra tokens" "" } */
12 /* These error is No such file or directory, just once. However, this
13 message is locale-dependent, so don't test for it. */
14 /* { dg-error "silly" "silly" { target *-*-* } 0 } */
15 /* { dg-error "missing" "missing" { target *-*-* } 0 } */
16 /* { dg-message "terminated" "terminated" { target *-*-* } 0 } */