blob: 2caa5895193288e82d8eaec84069565727379efa (
plain)
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
|
/*
960302-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
long a = 1;
#if !defined(__SDCC_pdk14) // Lack of memory - see RFE #364.
int
foo (void)
{
switch (a % 2 % 2 % 2 % 2 % 2 % 2 % 2 % 2)
{
case 0:
return 0;
case 1:
return 1;
default:
return -1;
}
}
#endif
void
testTortureExecute (void)
{
#if !defined(__SDCC_pdk14) // Lack of memory - see RFE #364.
ASSERT(foo () == 1);
return;
#endif
}
|