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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [19990407-1.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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.