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
2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
[official-gcc.git]
/
gcc
/
testsuite
/
gnat.dg
/
uninit_func.adb
blob
9c9ee3411431b8bdff3c5ad34d01c253ccf5da74
1
-- { dg-do compile }
2
-- { dg-options "-O -Wall" }
3
4
function
uninit_func
(
A
,
B
:
Boolean
)
return
Boolean
is
5
C
:
Boolean
;
-- { dg-warning "may be used uninitialized" }
6
begin
7
if
A
then
8
C
:=
False
;
9
elsif
B
then
10
C
:=
True
;
11
end if
;
12
return
C
;
13
end
;