aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/include2.c
blob: e935703b61421ad307f2a786243b6e6c1b91d0ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Copyright (C) 2000 Free Software Foundation, Inc.  */

/* { dg-do preprocess } */
/* APPLE LOCAL BEGIN Apple disable this warning by default */
/* Tests that #include does not allow the terminating '>' or '"' to be
   escaped, as per the standard.  */
/* { dg-options "-Wextra-tokens"  } */
/* Source: Neil Booth, 4 Nov 2000.  */

#include <silly\>>  /* { dg-warning "extra tokens" "" } */
#include "silly\""  /* { dg-warning "extra tokens" "" } */

/* These error is No such file or directory, just once.  However, this
   message is locale-dependent, so don't test for it.  */
/* { dg-error "silly" "" { target *-*-* } 10 } */
/* APPLE LOCAL END  */