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
/
pr67784-4.c
blob
54620802a90303184f023dc59d1663b9e7e0afa4
1
/* PR c/67784 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wno-switch-unreachable" } */
4
5
typedef
int
T
;
6
7
void
8
fn1
(
void
)
9
{
10
switch
(
sizeof
(
enum
{
T
}))
11
if
(
1
)
12
;
13
T x
;
14
}
15
16
void
17
fn2
(
void
)
18
{
19
int
i
=
0
;
20
switch
(
sizeof
(
enum
{
T
}))
21
if
(
1
)
22
i
++;
23
T x
;
24
}
25
26
void
27
fn3
(
void
)
28
{
29
switch
(
sizeof
(
enum
{
T
}))
30
if
(
1
)
31
{
32
}
33
T x
;
34
}
35
36
void
37
fn4
(
void
)
38
{
39
switch
(
sizeof
(
enum
{
T
}))
40
if
(
1
)
41
L
:
42
;
43
T x
;
44
}
45
46
void
47
fn5
(
void
)
48
{
49
switch
(
sizeof
(
enum
{
T
}))
50
if
(
1
)
51
;
52
else
53
;
54
T x
;
55
}