blob: 307149ab4b41438761306314103a2936b9a7f675 (
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
|
/*
20001130-2.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
static int which_alternative = 3;
static const char *i960_output_ldconst (void);
static const char *
output_25 (void)
{
switch (which_alternative)
{
case 0:
return "mov %1,%0";
case 1:
return i960_output_ldconst ();
case 2:
return "ld %1,%0";
case 3:
return "st %1,%0";
}
}
static const char *i960_output_ldconst (void)
{
return "foo";
}
void
testTortureExecute (void)
{
const char *s = output_25 () ;
if (s[0] != 's')
ASSERT (0);
return;
}
|