Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-930126-1.c
blobd27962eb08058320f514587d39fda1d8b8ba49dc
1 /*
2 930126-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 // Todo: Enable when sdcc supports bitfields alrger than int
12 #if 0
13 struct s {
14 unsigned long long a:8, b:32;
17 struct s
18 f(struct s x)
20 x.b = 0xcdef1234;
21 return x;
23 #endif
25 void
26 testTortureExecute (void)
28 #if 0
29 static struct s i;
30 i.a = 12;
31 i = f(i);
32 if (i.a != 12 || i.b != 0xcdef1234)
33 ASSERT(0);
34 return;
35 #endif