blob: 5af2ca3ec7d62b162b119f105d014b4eb56cb26f (
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
|
/*
20090207-1.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
#ifndef __SDCC_pdk14 // Lack of memory
int foo(int i)
{
int a[32];
a[1] = 3;
a[0] = 1;
a[i] = 2;
return a[0];
}
#endif
void
testTortureExecute (void)
{
#ifndef __SDCC_pdk14 // Lack of memory
if (foo (0) != 2
|| foo (1) != 1)
ASSERT (0);
return;
#endif
}
|