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-pr87053.c
blob
ed07c080daf4d32e54e7116636c2041afe8e85ec
1
/*
2
pr87053.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
#include <string.h>
8
9
/* PR middle-end/87053 */
10
11
#if 0
12
const union
13
{
struct
{
14
char
x
[
4
];
15
char
y
[
4
];
16
};
17
struct
{
18
char
z
[
8
];
19
};
20
}
u
= {{
"1234"
,
"567"
}};
21
#endif
22
23
void
24
testTortureExecute
(
void
)
25
{
26
#if 0
// Bug
27
if
(
strlen
(
u
.
z
) !=
7
)
28
ASSERT
(
0
);
29
#endif
30
}
31