blob: 62e35bdf118b9e96de475e7e664240b681fcc93b (
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
|
/*
930513-2.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#pragma disable_warning 85
#endif
void sub3 (const int *i)
{
}
void eq (int a, int b)
{
static int i = 0;
if (a != i)
ASSERT (0);
i++;
}
void
testTortureExecute (void)
{
int i;
for (i = 0; i < 4; i++)
{
const int j = i;
int k;
sub3 (&j);
k = j;
eq (k, k);
}
return;
}
|