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
LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
uninit-pr81897-2.c
blob
644de655225d9d72acd6d58aff379eb4f1a5373e
1
/* { dg-do compile } */
2
/* { dg-options "-O1 -fno-tree-ccp -fno-tree-dse -Wmaybe-uninitialized" } */
3
4
int
oo
;
5
6
void
7
pc
(
int
*
tt
)
8
{
9
int
cf
=
0
;
10
11
if
(*
tt
!=
0
)
12
{
13
if
(
0
)
14
{
15
int
*
qg
;
16
int
uj
=
0
;
17
18
t6
:
19
tt
= &
cf
;
20
if
(
oo
!=
0
)
21
{
22
++
uj
;
/* { dg-warning "may be used uninit" } */
23
*
qg
= !!
oo
&& !!
uj
;
/* { dg-warning "may be used uninit" } */
24
}
25
}
26
cf
=
0
;
27
goto
t6
;
28
}
29
30
if
(
oo
!=
0
)
31
{
32
*
tt
=
1
;
33
goto
t6
;
34
}
35
}