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
2017-12-08 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pr39666-2.f90
blob
633d0ba79c58af346a50c2b3ab15960582e5b4b0
1
! PR middle-end/39666
2
! { dg-do compile }
3
! { dg-options "-O2 -Wuninitialized" }
4
5
FUNCTION
f
(
n
)
6
INTEGER
,
INTENT
(
in
) ::
n
7
REAL
::
f
8
9
SELECT
CASE
(
n
)
10
CASE
(:-
1
);
f
= -
1.0
11
CASE
(
0
);
f
=
0.0
12
CASE
(
2
:);
f
=
1.0
13
END
SELECT
14
END FUNCTION
! { dg-warning "may be used uninitialized" }