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-1.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) \
do \
{ \
  OPRD1 OPRT OPRD2; /* { dg-message "expansion" }*/ 	   \
} while (0)
 
#define SHIFTL(A,B) \
  OPERATE (A,<<,B) /* { dg-message "expanded|expansion" } */
 
void
foo ()
{
  SHIFTL (0.1,0.2); /* { dg-message "expanded" } */
}
 
/* { dg-error "invalid operands" "" { target *-*-* } 13 } */
 

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.