blob: 8bba00b78d89f16940de0b6abb42d251534d0090 (
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
43
44
|
/*
960327-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
#include <stdio.h>
g ()
{
return '\n';
}
void f ()
{
#if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
char s[] = "abcedfg012345";
char *sp = s + 12;
switch (g ())
{
case '\n':
break;
}
while (*--sp == '0')
;
sprintf (sp + 1, "X");
if (s[12] != 'X')
ASSERT (0);
#endif
}
void
testTortureExecute (void)
{
f ();
return;
}
|