URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do preprocess } */
|
/* { dg-do preprocess } */
|
/* { dg-options "-CC" } */
|
/* { dg-options "-CC" } */
|
|
|
/* This tests to make sure that expressions function properly
|
/* This tests to make sure that expressions function properly
|
when used with macros containing comments and the -CC option
|
when used with macros containing comments and the -CC option
|
is being used.
|
is being used.
|
|
|
Jason R. Thorpe, 6 Apr 2002 */
|
Jason R. Thorpe, 6 Apr 2002 */
|
|
|
#define ONE 1 /* one */
|
#define ONE 1 /* one */
|
#define TWO 2 /* two */
|
#define TWO 2 /* two */
|
#define THREE 3 /* three */
|
#define THREE 3 /* three */
|
|
|
#if (ONE + TWO) != THREE
|
#if (ONE + TWO) != THREE
|
failed
|
failed
|
#else
|
#else
|
passed
|
passed
|
#endif
|
#endif
|
|
|
/* { dg-final { scan-file maccom6.i "(^|\n)passed" } } */
|
/* { dg-final { scan-file maccom6.i "(^|\n)passed" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.