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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [skipping.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 jeremybenn
/* Copyright (C) 2000 Free Software Foundation, Inc.  */
2
 
3
/* { dg-do preprocess } */
4
 
5
/* Tests expansion of macros whilst skipping false conditionals.  */
6
 
7
/* Source: Neil Booth, 29 Oct 2000.  */
8
 
9
#define F()
10
#define TRUE 1
11
 
12
#if 0
13
F(                      /* No diagnostic: don't even try to expand it.  */
14
#endif
15
 
16
#if 0
17
#elif TRUE              /* Expand this, even though we were skipping.  */
18
#else
19
#error Macros not expanded in #elif
20
#endif
21
 
22
/* Check we don't warn about bad identifiers when skipping.  */
23
#if 0
24
#define foo __VA_ARGS__ /* { dg-bogus "warned about identifier" } */
25
#endif

powered by: WebSVN 2.1.0

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