blob: d27962eb08058320f514587d39fda1d8b8ba49dc (
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
|
/*
930126-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
// Todo: Enable when sdcc supports bitfields alrger than int
#if 0
struct s {
unsigned long long a:8, b:32;
};
struct s
f(struct s x)
{
x.b = 0xcdef1234;
return x;
}
#endif
void
testTortureExecute (void)
{
#if 0
static struct s i;
i.a = 12;
i = f(i);
if (i.a != 12 || i.b != 0xcdef1234)
ASSERT(0);
return;
#endif
}
|