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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

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