blob: 3f7a3d5b82a563555339b2c602813bdf4661fd87 (
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
37
38
39
40
41
42
43
|
/*
pr42006.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
static unsigned int
my_add(unsigned int si1, unsigned int si2)
{
return (si1 > (50-si2)) ? si1 : (si1 + si2);
}
static unsigned int
my_shift(unsigned int left, unsigned int right)
{
return (right > 100) ? left : (left >> right);
}
static int func_4(unsigned int p_6)
{
int count = 0;
for (p_6 = 1; p_6 < 3; p_6 = my_add(p_6, 1))
{
if (count++ > 1)
ASSERT (0);
if (my_shift(p_6, p_6))
return 0;
}
return 0;
}
void
testTortureExecute (void)
{
func_4(0);
return;
}
|