blob: 44b0b5040364d38893d80e7c65539ddfa28b2f29 (
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
|
/*
20020916-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
/* Distilled from try_pre_increment in flow.c. If-conversion inserted
new instructions at the wrong place on ppc. */
int foo(int a)
{
int x;
x = 0;
if (a > 0) x = 1;
if (a < 0) x = 1;
return x;
}
void
testTortureExecute (void)
{
if (foo(1) != 1)
ASSERT(0);
return;
}
|