blob: e8e1cd7600b5bc22e0c010730daf71887ed0a4ba (
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
|
/*
pr70005.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
unsigned char a = 6;
int b, c;
static void
fn1 ()
{
int i = a > 1 ? 1 : a, j = 6 & (c = a && (b = a));
int d = 0, e = a, f = ~c, g = b || a;
unsigned char h = ~a;
if (a)
f = j;
if (h && g)
d = a;
i = -~(f * d * h) + c && (e || i) ^ f;
if (i != 1)
ASSERT (0);
}
void
testTortureExecute (void)
{
fn1 ();
return;
}
|