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] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/*
2
   { dg-options "-ftrack-macro-expansion=1" }
3
   { dg-do compile }
4
*/
5
 
6
#define OPERATE(OPRD1, OPRT, OPRD2) \
7
do \
8
{ \
9
  OPRD1 OPRT OPRD2; /* { dg-message "expansion" }*/        \
10
} while (0)
11
 
12
#define SHIFTL(A,B) \
13
  OPERATE (A,<<,B) /* { dg-message "expanded|expansion" } */
14
 
15
void
16
foo ()
17
{
18
  SHIFTL (0.1,0.2); /* { dg-message "expanded" } */
19
}
20
 
21
/* { dg-error "invalid operands" "" { target *-*-* } 13 } */

powered by: WebSVN 2.1.0

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