OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [19990407-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Regression test for a cpplib macro-expansion bug where
2
   `@' becomes `@@' when stringified.  */
3
 
4
/* { dg-do run } */
5
 
6
#include <string.h>
7
#include <stdlib.h>
8
 
9
#define STR(x) #x
10
 
11
char *a = STR(@foo), *b = "@foo";
12
 
13
int
14
main(void)
15
{
16
  if (strcmp (a, b))
17
    abort ();
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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