mise à jour des tests
This commit is contained in:
10
tests/testSemanticError/test_invalid_recursion.vsl
Normal file
10
tests/testSemanticError/test_invalid_recursion.vsl
Normal file
@@ -0,0 +1,10 @@
|
||||
FUNC INT f(a) {
|
||||
IF a THEN RETURN 0
|
||||
ELSE RETURN f(a-1)
|
||||
FI
|
||||
}
|
||||
|
||||
FUNC INT main(){
|
||||
PRINT "La fonction f n est pas declaree avant sa premiere utilisation"
|
||||
RETURN f(5)
|
||||
}
|
||||
Reference in New Issue
Block a user