OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [extratokens2.c] - Blame information for rev 378

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Copyright (C) 2002 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do preprocess } */
4
/* { dg-options "-Wno-endif-labels" } */
5
 
6
/* Tests that -Wno-endif-labels correctly disables the checks done by
7
   default (and tested in extratokens.c).  */
8
 
9
/* Source: Phil Edwards, 21 Mar 2002.  Copied from extratokens.c and
10
   modified.  */
11
 
12
#if 1 
13
#if 0
14
#else foo       /* { dg-bogus "extra tokens" "bad warning" } */
15
#endif /        /* { dg-bogus "extra tokens" "bad warning" } */
16
#endif
17
 
18
# 36 "file.c" 3
19
 
20
/* ... but in a system header, it's acceptable.  */
21
#ifdef KERNEL
22
#endif KERNEL  /* { dg-bogus "extra tokens" "bad warning" } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.