summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/c99-empty-macro-args.c
blob: e1e0c61ec2973ed684cd6df3de63568c93c07bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic" } */

#define f(a,b)   f2(a,,b) 
#define f2(a,b,c) a; b; c;
#define f3(a)    a

#define g()   p()

void p(void) {}


void foo(void)
{
    f(p(),p());
    f2(p(),,p());
    f3();
    g();
}