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
/
bug-524211.c
blob
3d3128bd0fd63d98ed7338ea4f5d3f942efa51c6
1
/* Problem with casts and warnings.
2
*/
3
#include <testfwk.h>
4
5
#if 0
6
/* Disabled as this only shows a warning */
7
8
typedef
unsigned short
UINT16
;
9
typedef
unsigned char
UINT8
;
10
11
typedef
struct
_Class Class
;
12
13
typedef
struct
_String
14
{
15
const
UINT8 sz
[
1
];
16
}
String
;
17
18
struct
_Class
19
{
20
String
*
szName
;
21
};
22
23
const
Class Bar
= {
24
"java.lang.Object"
,
25
};
26
27
void
foo
(
void
)
28
{
29
}
30
#endif
31
32
void
testBug
(
void
)
33
{
34
}