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

Subversion Repositories openrisc_me

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Test that undefined names evaluate to zero, that macros after a
2
   funlike macro are expanded, and that if it is a '(' the funlike
3
   macro is not treated as such.  */
4
 
5
/* { dg-do run } */
6
 
7
extern void abort (void);
8
 
9
#define f(x) x
10
 
11
int main ()
12
{
13
#if f(1) == f /**/ (/**/1/**/)
14
  int x;
15
#endif
16
 
17
  x = 0;
18
  if (f
19
      /**/   (
20
              /**/ 0/**/
21
              /**/)
22
      )
23
    abort ();
24
 
25
  return 0;
26
}

powered by: WebSVN 2.1.0

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