repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
volatile-bitfields-2.c
blob
a57cd74753cbcc5e0c463a8329a38d371d818d7c
1
/* { dg-do run } */
2
/* { dg-options "-fstrict-volatile-bitfields" } */
3
4
extern
void
abort
(
void
);
5
struct
thing
{
6
volatile
unsigned short
a
:
8
;
7
volatile
unsigned short
b
:
8
;
8
}
t
= {
1
,
2
};
9
10
int
main
()
11
{
12
t
.
a
=
3
;
13
if
(
t
.
a
!=
3
||
t
.
b
!=
2
)
abort
();
14
return
0
;
15
}