URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Test for proper comment elimination semantics from cpplib's -traditional.
|
/* Test for proper comment elimination semantics from cpplib's -traditional.
|
This should compile and link with compiled with `gcc -traditional-cpp'.
|
This should compile and link with compiled with `gcc -traditional-cpp'.
|
Test case by Jason R. Thorpe <thorpej@zembu.com>. */
|
Test case by Jason R. Thorpe <thorpej@zembu.com>. */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
extern int printf (const char *, ...);
|
extern int printf (const char *, ...);
|
|
|
#define A(name) X/**/name
|
#define A(name) X/**/name
|
|
|
#define B(name) \
|
#define B(name) \
|
void A(Y/**/name)() { A(name)(); }
|
void A(Y/**/name)() { A(name)(); }
|
|
|
void Xhello() { printf("hello world\n"); }
|
void Xhello() { printf("hello world\n"); }
|
|
|
B(hello)
|
B(hello)
|
|
|
int main() { XYhello(); return (0); }
|
int main() { XYhello(); return (0); }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.