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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [macro-exp-tracking-2.c] - Rev 801

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

/* 
   { dg-options "-ftrack-macro-expansion=1" }
   { dg-do compile }
*/
 
#define OPERATE(OPRD1, OPRT, OPRD2) \
 OPRD1 OPRT OPRD2;		/* { dg-message "expansion" } */
 
#define SHIFTL(A,B) \
  OPERATE (A,<<,B) /* { dg-message "expanded|expansion" } */
 
#define MULT(A) \
  SHIFTL (A,1)			/* { dg-message "expanded|expansion" } */
 
void
foo ()
{
  MULT (1.0);			/* { dg-message "expanded" } */
}
 
/* { dg-error "invalid operands to binary <<" "" { target *-*-* } { 10 } } */
 

Go to most recent revision | 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.