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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [paste.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test for proper comment elimination semantics from cpplib's -traditional.
2
   This should compile and link with compiled with `gcc -traditional-cpp'.
3
   Test case by Jason R. Thorpe <thorpej@zembu.com>.  */
4
 
5
/* { dg-do compile } */
6
 
7
extern int printf (const char *, ...);
8
 
9
#define A(name) X/**/name
10
 
11
#define B(name) \
12
void A(Y/**/name)() { A(name)(); }
13
 
14
void Xhello() { printf("hello world\n"); }
15
 
16
B(hello)
17
 
18
int main() { XYhello(); return (0); }

powered by: WebSVN 2.1.0

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