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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pushpop_macro.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
/* Do the preprocessor push_macro/pop_macro test.  */
2
 
3
/* { dg-do run } */
4
 
5
extern "C" void abort ();
6
 
7
#define _ 2
8
#pragma push_macro("_")
9
#undef _
10
#define _ 1
11
#pragma pop_macro("_")
12
 
13
int main ()
14
{
15
  if (_ != 2)
16
    abort ();
17
  return 0;
18
}
19
 

powered by: WebSVN 2.1.0

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