blob: 947f7eafca0eb1dab4f593b0d26e2de179450a32 (
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
|
/*
961223-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
// TODO: Enable when sdcc can pass struct!
#if 0
struct s {
double d;
};
inline struct s
sub (struct s s)
{
s.d += 1.0;
return s;
}
#endif
void
testTortureExecute (void)
{
#if 0
struct s t = { 2.0 };
t = sub (t);
if (t.d != 3.0)
ASSERT (0);
return;
#endif
}
|