Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20020307-1.c

raw
1 void abort (void);
2 void exit (int);
3
4 #define MASK(N) ((1UL << (N)) - 1)
5 #define BITS(N) ((1UL << ((N) - 1)) + 2)
6
7 #define FUNC(N) void f##N(long j) { if ((j & MASK(N)) >= BITS(N)) abort();}
8
9 FUNC(3)
10 FUNC(4)
11 FUNC(5)
12 FUNC(6)
13 FUNC(7)
14 FUNC(8)
15 FUNC(9)
16 FUNC(10)
17 FUNC(11)
18 FUNC(12)
19 FUNC(13)
20 FUNC(14)
21 FUNC(15)
22 FUNC(16)
23 FUNC(17)
24 FUNC(18)
25 FUNC(19)
26 FUNC(20)
27 FUNC(21)
28 FUNC(22)
29 FUNC(23)
30 FUNC(24)
31 FUNC(25)
32 FUNC(26)
33 FUNC(27)
34 FUNC(28)
35 FUNC(29)
36 FUNC(30)
37 FUNC(31)
38
39 int main ()
40 {
41 f3(0);
42 f4(0);
43 f5(0);
44 f6(0);
45 f7(0);
46 f8(0);
47 f9(0);
48 f10(0);
49 f11(0);
50 f12(0);
51 f13(0);
52 f14(0);
53 f15(0);
54 f16(0);
55 f17(0);
56 f18(0);
57 f19(0);
58 f20(0);
59 f21(0);
60 f22(0);
61 f23(0);
62 f24(0);
63 f25(0);
64 f26(0);
65 f27(0);
66 f28(0);
67 f29(0);
68 f30(0);
69 f31(0);
70
71 exit(0);
72 }