blob: 73cd91e467c2164e6d9344968ad9f3e264791537 (
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
45
46
47
48
49
50
|
/*
20020810-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
#if 0 // TODO: enable when support for struct is complete!
/* PR target/7559
This testcase was miscompiled on x86-64, because classify_argument
wrongly computed the offset of nested structure fields. */
struct A
{
long x;
};
struct R
{
struct A a, b;
};
struct R R = { 100, 200 };
void f (struct R r)
{
if (r.a.x != R.a.x || r.b.x != R.b.x)
ASSERT (0);
}
struct R g (void)
{
return R;
}
#endif
void testTortureExecute (void)
{
#if 0
struct R r;
f(R);
r = g();
if (r.a.x != R.a.x || r.b.x != R.b.x)
ASSERT (0);
return;
#endif
}
|