OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [endif-pedantic2.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* Copyright (C) 2002 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do preprocess } */
4
/* { dg-options "-Wno-endif-labels -pedantic" } */
5
 
6
/* Tests combinations of -pedantic and -Wno-endif-labels; see extratokens2.c
7
   for more general tests.  */
8
 
9
/* Source: Phil Edwards, 25 Mar 2002.  Copied from endif-pedantic1.c and
10
   modified.  */
11
 
12
#if 1 
13
#if 0
14
#else foo       /* { dg-error "extra tokens" "tokens after #else" } */
15
#endif /        /* { dg-error "extra tokens" "tokens after #endif" } */
16
#endif
17
 

powered by: WebSVN 2.1.0

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