blob: bdbf72d6ae146844b4d5928700f78602eded8b81 (
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
|
/*
20101025-1.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
static int g_7;
static int *volatile g_6 = &g_7;
int g_3;
static int f1 (int *p_58)
{
return *p_58;
}
void f2 (int i);
void f2 (int i)
{
g_3 = i;
}
int f3 (void);
int f3 (void)
{
*g_6 = 1;
f2 (f1 (&g_7));
return 0;
}
void
testTortureExecute (void)
{
f3 ();
if (g_3 != 1)
ASSERT (0);
return;
}
|