blob: 783bbf52556567f3f38b1020a568e440ffc2f3e8 (
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
27
28
29
30
31
32
33
34
35
36
|
/*
pr78617.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
int a = 0;
int d = 1;
int f = 1;
int fn1() {
return a || 1 >> a;
}
int fn2(int p1, int p2) {
return p2 >= 2 ? p1 : p1 >> 1;
}
int fn3(int p1) {
return d ^ p1;
}
int fn4(int p1, int p2) {
return fn3(!d > fn2((f = fn1() - 1000) || p2, p1));
}
void
testTortureExecute (void) {
if (fn4(0, 0) != 1)
ASSERT (0);
return;
}
|