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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [funlike-4.c] - Rev 867

Go to most recent revision | Compare with Previous | Blame | View Log

/* Test that undefined names evaluate to zero, that macros after a
   funlike macro are expanded, and that if it is a '(' the funlike
   macro is not treated as such.  */
 
/* { dg-do run } */
 
extern void abort (void);
 
#define f(x) x
 
int main ()
{
#if f(1) == f /**/ (/**/1/**/)
  int x;
#endif
 
  x = 0;
  if (f
      /**/   (
	      /**/ 0/**/
	      /**/)
      )
    abort ();
 
  return 0;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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