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
struct / union in initializer, RFE #901.
[sdcc.git]
/
sdcc
/
support
/
regression
/
tests
/
gcc-torture-execute-980505-2.c
blob
2408de1b46f02cae91383573b1849c1eba318eef
1
/*
2
980505-2.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
typedef
unsigned short
Uint16
;
12
typedef
unsigned int
Uint
;
13
14
Uint
f
()
15
{
16
Uint16 token
;
17
Uint count
;
18
static
Uint16 values
[
1
] = {
0x9300
};
19
20
token
=
values
[
0
];
21
count
=
token
>>
8
;
22
23
return
count
;
24
}
25
26
void
27
testTortureExecute
(
void
)
28
{
29
if
(
f
() !=
0x93
)
30
ASSERT
(
0
);
31
return
;
32
}
33