repo.or.cz
/
sdcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
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
blob
d27962eb08058320f514587d39fda1d8b8ba49dc
1
/*
2
930126-1.c from the execute part of the gcc torture suite.
3
*/
4
5
#include <testfwk.h>
6
7
#ifdef __SDCC
8
#pragma std_c99
9
#endif
10
11
// Todo: Enable when sdcc supports bitfields alrger than int
12
#if 0
13
struct
s
{
14
unsigned long long
a
:
8
,
b
:
32
;
15
};
16
17
struct
s
18
f
(
struct
s x
)
19
{
20
x
.
b
=
0xcdef1234
;
21
return
x
;
22
}
23
#endif
24
25
void
26
testTortureExecute
(
void
)
27
{
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
36
}
37