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-vrp-7.c
blob
ff32fe3f060e760c577714e72d5a006ef5177e50
1
/*
2
vrp-7.c from the execute part of the gcc torture tests.
3
*/
4
5
#include <testfwk.h>
6
7
struct
T
8
{
9
int
b
:
1
;
10
}
t
;
11
12
void
foo
(
int
f
)
13
{
14
t
.
b
= (
f
&
0x10
) ?
1
:
0
;
15
}
16
17
void
18
testTortureExecute
(
void
)
19
{
20
foo
(
0x10
);
21
if
(!
t
.
b
)
22
ASSERT
(
0
);
23
return
;
24
}