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
c++: Implement for namespace statics CWG 2867 - Order of initialization for structure...
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr112509.c
blob
b733780bdc74cc827d90f8c01a36311126289961
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-tree-vrp -fno-tree-fre -fno-tree-forwprop" } */
3
4
struct
S
{
5
unsigned
j
:
3
;
6
};
7
int
k
,
l
,
m_1
= {
0
};
8
void
f
(
int
l
,
struct
S x
) {
9
unsigned int
k_1
;
10
while
(
m_1
%
8
)
switch
(
x
.
j
) {
11
case
1
:
12
case
3
:
13
case
4
:
14
case
6
:
15
case
2
:
16
case
5
:
l
=
m_1
;
17
case
7
:
18
case
0
:
k_1
=
0
;
19
default
:
break
;
20
}
21
}
22
void
foo
(
struct
S x
) {
f
(
l
,
x
); }