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
/
pr67512.c
blob
95f836aea00878ebed3720f15f5fd0302932796e
1
/* PR middle-end/67512 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -Wuninitialized" } */
4
5
extern
int
fn2
(
void
);
6
extern
int
fn3
(
int
);
7
void
8
fn1
(
void
)
9
{
10
int
z
,
m
;
11
if
(
1
&
m
)
/* { dg-warning "is used uninitialized" } */
12
z
=
fn2
();
13
z
=
1
==
m
?
z
:
2
==
m
;
14
fn3
(
z
);
15
}