URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Regression test for a cpplib macro-expansion bug where
|
/* Regression test for a cpplib macro-expansion bug where
|
`@' becomes `@@' when stringified. */
|
`@' becomes `@@' when stringified. */
|
|
|
/* { dg-do run } */
|
/* { dg-do run } */
|
|
|
#include <string.h>
|
#include <string.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
|
|
#define STR(x) #x
|
#define STR(x) #x
|
|
|
char *a = STR(@foo), *b = "@foo";
|
char *a = STR(@foo), *b = "@foo";
|
|
|
int
|
int
|
main(void)
|
main(void)
|
{
|
{
|
if (strcmp (a, b))
|
if (strcmp (a, b))
|
abort ();
|
abort ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.