Debian Codegraph @

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

raw
1 void abort (void);
2 void exit (int);
3
4 #define VALUE 0x123456789abcdefLL
5 #define AFTER 0x55
6
7 void
8 test1 (int a, long long value, int after)
9 {
10 if (a != 1
11 || value != VALUE
12 || after != AFTER)
13 abort ();
14 }
15
16 void
17 test2 (int a, int b, long long value, int after)
18 {
19 if (a != 1
20 || b != 2
21 || value != VALUE
22 || after != AFTER)
23 abort ();
24 }
25
26 void
27 test3 (int a, int b, int c, long long value, int after)
28 {
29 if (a != 1
30 || b != 2
31 || c != 3
32 || value != VALUE
33 || after != AFTER)
34 abort ();
35 }
36
37 void
38 test4 (int a, int b, int c, int d, long long value, int after)
39 {
40 if (a != 1
41 || b != 2
42 || c != 3
43 || d != 4
44 || value != VALUE
45 || after != AFTER)
46 abort ();
47 }
48
49 void
50 test5 (int a, int b, int c, int d, int e, long long value, int after)
51 {
52 if (a != 1
53 || b != 2
54 || c != 3
55 || d != 4
56 || e != 5
57 || value != VALUE
58 || after != AFTER)
59 abort ();
60 }
61
62 void
63 test6 (int a, int b, int c, int d, int e, int f, long long value, int after)
64 {
65 if (a != 1
66 || b != 2
67 || c != 3
68 || d != 4
69 || e != 5
70 || f != 6
71 || value != VALUE
72 || after != AFTER)
73 abort ();
74 }
75
76 void
77 test7 (int a, int b, int c, int d, int e, int f, int g, long long value, int after)
78 {
79 if (a != 1
80 || b != 2
81 || c != 3
82 || d != 4
83 || e != 5
84 || f != 6
85 || g != 7
86 || value != VALUE
87 || after != AFTER)
88 abort ();
89 }
90
91 void
92 test8 (int a, int b, int c, int d, int e, int f, int g, int h, long long value, int after)
93 {
94 if (a != 1
95 || b != 2
96 || c != 3
97 || d != 4
98 || e != 5
99 || f != 6
100 || g != 7
101 || h != 8
102 || value != VALUE
103 || after != AFTER)
104 abort ();
105 }
106
107 int
108 main ()
109 {
110 test1 (1, VALUE, AFTER);
111 test2 (1, 2, VALUE, AFTER);
112 test3 (1, 2, 3, VALUE, AFTER);
113 test4 (1, 2, 3, 4, VALUE, AFTER);
114 test5 (1, 2, 3, 4, 5, VALUE, AFTER);
115 test6 (1, 2, 3, 4, 5, 6, VALUE, AFTER);
116 test7 (1, 2, 3, 4, 5, 6, 7, VALUE, AFTER);
117 test8 (1, 2, 3, 4, 5, 6, 7, 8, VALUE, AFTER);
118 exit (0);
119 }