Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / qct / 0085-variadic.c
blobcb05002e3515aa4c3a8de83468b52c69276ab3e0
1 #define CALL(FUN, ...) FUN(__VA_ARGS__)
3 int
4 none()
6 return 0;
9 int
10 one(int a)
12 if (a != 1)
13 return 1;
15 return 0;
18 int
19 two(int a, int b)
21 if (a != 1)
22 return 1;
23 if (b != 2)
24 return 1;
26 return 0;
29 int
30 three(int a, int b, int c)
32 if (a != 1)
33 return 1;
34 if (b != 2)
35 return 1;
36 if (c != 3)
37 return 1;
39 return 0;
42 int
43 main()
45 if (CALL(none))
46 return 1;
47 if (CALL(one, 1))
48 return 2;
49 if (CALL(two, 1, 2))
50 return 3;
51 if (CALL(three, 1, 2, 3))
52 return 4;
54 return 0;