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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [redef3.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test for redefining macros with mismatch token count (and the oddity). */
2
 
3
/* { dg-do preprocess } */
4
/* { dg-options "-DC -DD=1 -DE" } */
5
 
6
#define A
7
#define A 1
8
#define B 2 3
9
#define B 2
10
#define C 1
11
#define D 1 2
12
#define E
13
 
14
/* { dg-warning "redefined" "redef A"      { target *-*-* } 7  }
15
   { dg-warning "redefined" "redef B"      { target *-*-* } 9  }
16
   { dg-warning "redefined" "redef D"      { target *-*-* } 11 }
17
   { dg-warning "redefined" "redef E"      { target *-*-* } 12 }
18
   { dg-warning "previous"  "prev def A"   { target *-*-* } 6  }
19
   { dg-warning "previous"  "prev def B"   { target *-*-* } 8  }
20
   { dg-warning "previous"  "prev def D/E" { target *-*-* } 0  }
21
*/

powered by: WebSVN 2.1.0

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