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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Test for redefining macros with insignificant (i.e. whitespace)
2
   differences.  */
3
 
4
/* { dg-do preprocess } */
5
 
6
#define foo bar
7
#define /* x */ foo /* x */ bar /* x */
8
 
9
#define quux(thud) a one and a thud and a two
10
#define /**/ quux( thud ) /**/ a one and a /**/ thud /**/ and /**/ a two
11
#define quux(thud) a one        and a thud and a        two /* bah */
12
 
13
/* { dg-bogus "redefined" "foo redefined"       { target *-*-* } 7 } */
14
/* { dg-bogus "redefined" "quux redefined"      { target *-*-* } 10 } */
15
/* { dg-bogus "redefined" "quux redefined"      { target *-*-* } 11 } */
16
 
17
/* { dg-bogus "previous def" "foo prev def"     { target *-*-* } 6 } */
18
/* { dg-bogus "previous def" "quux prev def"    { target *-*-* } 9 } */
19
/* { dg-bogus "previous def" "quux prev def"    { target *-*-* } 10 } */

powered by: WebSVN 2.1.0

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