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] - 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
 OPRD1 OPRT OPRD2;              /* { dg-message "expansion" } */
8
 
9
#define SHIFTL(A,B) \
10
  OPERATE (A,<<,B) /* { dg-message "expanded|expansion" } */
11
 
12
#define MULT(A) \
13
  SHIFTL (A,1)                  /* { dg-message "expanded|expansion" } */
14
 
15
void
16
foo ()
17
{
18
  MULT (1.0);                   /* { dg-message "expanded" } */
19
}
20
 
21
/* { dg-error "invalid operands to binary <<" "" { target *-*-* } { 10 } } */

powered by: WebSVN 2.1.0

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