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] - Rev 816

Compare with Previous | Blame | View Log

/* Test for redefining macros with mismatch token count (and the oddity). */
 
/* { dg-do preprocess } */
/* { dg-options "-DC -DD=1 -DE" } */
 
#define A
#define A 1
#define B 2 3
#define B 2
#define C 1
#define D 1 2
#define E
 
/* { dg-warning "redefined" "redef A"      { target *-*-* } 7  }
   { dg-warning "redefined" "redef B"      { target *-*-* } 9  }
   { dg-warning "redefined" "redef D"      { target *-*-* } 11 }
   { dg-warning "redefined" "redef E"      { target *-*-* } 12 }
   { dg-warning "previous"  "prev def A"   { target *-*-* } 6  }
   { dg-warning "previous"  "prev def B"   { target *-*-* } 8  }
   { dg-warning "previous"  "prev def D/E" { target *-*-* } 0  }
*/
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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