blob: e2238114960e84778e8da67158d4a798d6ecceab (
plain) (
blame)
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
|
/*
20020611-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
/* PR target/6997. Missing (set_attr "cc" "none") in sleu pattern in
cris.md. Testcase from hp@axis.com. */
int p;
int k;
unsigned int n;
void x ()
{
unsigned int h;
h = n <= 30;
if (h)
p = 1;
else
p = 0;
if (h)
k = 1;
else
k = 0;
}
unsigned int n = 30;
void
testTortureExecute (void)
{
x ();
if (p != 1 || k != 1)
ASSERT (0);
return;
}
|