diff options
Diffstat (limited to 'tests/lib/script1.lua')
| -rw-r--r-- | tests/lib/script1.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/lib/script1.lua b/tests/lib/script1.lua index f7cd8a90b9..e911a1c941 100644 --- a/tests/lib/script1.lua +++ b/tests/lib/script1.lua @@ -18,3 +18,15 @@ function fact(n) n = helper(n) } end + +function bad_return1() +end + +function bad_return2() + return 1 +end + +function bad_return3() + error("Something bad!") +end + |
