summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/trad/funlike-4.c
blob: fcc65a8d60db7566a2ffe08635f1c55ff42be70d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* 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;
}