Update of /cvsroot/nice/Nice/testsuite/compiler/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv11924/testsuite/compiler/functions
Added Files:
return.testsuite
Log Message:
Add location to local functions.
Added testcase for functions made of an endless loop: they don't need
a trailing return.
--- NEW FILE: return.testsuite ---
/// PASS bug
///Toplevel
String f(String b) {
while (true) {
try {
return "f2(b)";
} catch(Exception e) {
// modify and try again
b = "adjust(b)";
}
}
}
/// FAIL
int x = 0;
// local function
int f()
/* /// FAIL HERE */ {
if (x > 0) return x;
}
|