☰
Debian Codegraph
@
1.5.5.8-1
/
/
src
/
test
/
06-Errors
/
error-return-not-all-2.ck
☽
☼
src/test/06-Errors/error-return-not-all-2.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// all control paths return
2
3
fun float foo( int v )
4
{
5
if( v == 1 )
6
{
7
return 1;
8
}
9
else if( v == 2 )
10
{
11
}
12
else
13
{
14
return 3;
15
}
16
}
17
18
<<< foo( 1 ) >>>;