Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Added tests to the git repo. | 6aca6f760084ee65f8cdd469b18ad5cb37c42ee3 | lep | 2016-01-17 10:44:56 |
Cleaned up string and comment handling in the lexer | ebec6e67e248bef82bf92416733b394399c4e1d4 | lep | 2016-01-17 09:51:44 |
Added \r, \n (\x10, \x13) as invalid escape characters. | 85d0c7e4453c1879bcbc4db8be28527c5ce9f4f7 | lep | 2016-01-06 13:16:49 |
Fixed another rare crash. | b6edcc3cfd5c1c837318b0efa5ded6f16e86b403 | lep | 2015-12-21 19:02:41 |
Fixed various warnings. | 6027429ad1895baef4796ac4ae43952ed51f6174 | lep | 2015-10-28 09:27:40 |
Added prof target to makefile | 9c4b383d3f7416a30a8bde79c735097edaf8d84a | lep | 2015-10-27 19:14:20 |
Added gprof support. | 374f624967a563dd4c356a3fc104f8ced49fd692 | lep | 2015-10-27 18:10:13 |
Changed //! +rb to //# +rb | 63af0d3664320cc94ee6e284c308b1983bcfdab2 | lep | 2015-10-27 17:17:04 |
Fixed rare segmentation fault. | 13a129c8800d306c4117a54cf62cabbb86db3092 | lep | 2015-10-25 16:11:55 |
Makefile fixes. | 08a5e4d203b0917d78c9fb479ff197d04f473b33 | lep | 2015-10-25 10:51:12 |
Makefile improvements (-O3 -flto) | 035a361468f060b12bc473e5ec6b0d59db0765d3 | lep | 2015-10-24 09:16:16 |
Moved tests into this folder. | 099d64a6284a26eafde87ef274c1210455db6f3e | lep | 2015-10-05 21:29:42 |
pjass now checks against //! +rb instead of //+rb. Whitespace allowed. | 27da8d5250f0b815ef5d8765e0eac766ac4cce6b | lep | 2015-10-04 21:52:31 |
Optimized //+rb marker check. | cb4a086136acb1a8d7b0bc8397237bbfbdc56191 | lep | 2015-10-04 18:11:13 |
Now allows //+rb everywhere. | 4f366b09d651baf0846ed2097db94d35fe42b5a0 | lep | 2015-10-04 17:43:38 |
Added test target to the Makefile | 0f2763df549a97364087c346f408e52ca9456c8d | lep | 2015-10-04 15:43:49 |
Allowes //+rb right before a function to ignore any returnbug errors in that function. Not throughoutly tested. | 230863ba145b74be6dc8062787c8c9c1806d1c7a | lep | 2015-10-04 14:06:30 |
Directive to suppress warnings. | f1538a555e3009cfd8cbd900347d523abdd11953 | lep | 2015-10-04 12:17:08 |
More Makefile enhancements. | 94c97f7c5f943f09ee575e96e388e9e2c947385c | lep | 2015-10-04 11:34:36 |
Makefile enhancements | 8bc7132422db4a3b90a82da4a63f7cfa9fdbe2f5 | lep | 2015-06-09 09:30:42 |
File Makefile changed (mode: 100644) (index 0774225..6837e86) | |||
... | ... | pjass-git-$(VERSION).zip: pjass | |
70 | 70 | ||
71 | 71 | SHOULD_FAIL := $(wildcard tests/should-fail/*.j) | SHOULD_FAIL := $(wildcard tests/should-fail/*.j) |
72 | 72 | SHOULD_CHECK := $(wildcard tests/should-check/*.j) | SHOULD_CHECK := $(wildcard tests/should-check/*.j) |
73 | MAP_SCRIPTS := $(wildcard tests/map-scripts/*.j) | ||
73 | 74 | ||
74 | .PHONY: test print-test $(SHOULD_CHECK) $(SHOULD_FAIL) | ||
75 | .PHONY: test print-test should-check should-fail map-scripts | ||
76 | .PHONY: $(SHOULD_CHECK) $(SHOULD_FAIL) $(MAP_SCRIPTS) | ||
77 | |||
78 | $(MAP_SCRIPTS): pjass print-test | ||
79 | @MAPSCRIPT=1 ./check.sh $@ | ||
75 | 80 | ||
76 | 81 | $(SHOULD_CHECK): pjass print-test | $(SHOULD_CHECK): pjass print-test |
77 | 82 | @./check.sh $@ | @./check.sh $@ |
78 | 83 | ||
84 | |||
79 | 85 | $(SHOULD_FAIL): pjass print-test | $(SHOULD_FAIL): pjass print-test |
80 | 86 | @./fail.sh $@ | @./fail.sh $@ |
81 | 87 | ||
82 | test: $(SHOULD_FAIL) $(SHOULD_CHECK) | ||
88 | should-fail: $(SHOULD_FAIL) | ||
89 | should-check: $(SHOULD_CHECK) | ||
90 | map-scripts: $(MAP_SCRIPTS) | ||
91 | |||
92 | test: should-fail should-check map-scripts | ||
93 | |||
83 | 94 | ||
84 | 95 | print-test: pjass | print-test: pjass |
85 | 96 | @echo 'Testing... ' | @echo 'Testing... ' |
File check.sh changed (mode: 100644) (index 00215a1..1f49d20) | |||
1 | 1 | #!/usr/bin/env bash | #!/usr/bin/env bash |
2 | 2 | ||
3 | msg=$(./pjass tests/common.j tests/Blizzard.j "$1" ) | ||
4 | ret=$? | ||
3 | if [[ "$MAPSCRIPT" ]]; then | ||
4 | msg=$(./pjass tests/common.j tests/Blizzard.j "$1" ) | ||
5 | ret=$? | ||
6 | else | ||
7 | msg=$(./pjass "$1") | ||
8 | ret=$? | ||
9 | fi | ||
10 | |||
11 | |||
5 | 12 | if [[ "$PROF" ]]; then | if [[ "$PROF" ]]; then |
6 | 13 | gprof pjass.exe gmon.out > "$1-analysis.txt" | gprof pjass.exe gmon.out > "$1-analysis.txt" |
7 | 14 | fi | fi |
File tests/should-check/call-after-return.j added (mode: 100644) (index 0000000..5ab1ea0) | |||
1 | function x takes nothing returns nothing | ||
2 | endfunction | ||
3 | |||
4 | function foo takes nothing returns integer | ||
5 | return 1337 | ||
6 | call x() | ||
7 | endfunction |
File tests/should-check/comment-as-last-statement.j added (mode: 100644) (index 0000000..0931263) | |||
1 | function foo takes nothing returns integer | ||
2 | return 0 // <- | ||
3 | endfunction | ||
4 | |||
5 | function bar takes nothing returns integer | ||
6 | return 0 | ||
7 | // <- | ||
8 | endfunction |
File tests/should-check/comment-before-endfunction.j added (mode: 100644) (index 0000000..166fb93) | |||
1 | function foo1 takes nothing returns integer | ||
2 | return 0 // <-Compiles correctly | ||
3 | endfunction | ||
4 | |||
5 | function foo2 takes nothing returns integer | ||
6 | return 0 | ||
7 | // <-This does not | ||
8 | endfunction |
File tests/should-check/comment-with-eof.j added (mode: 100644) (index 0000000..ef45e6f) | |||
1 | function x takes nothing returns nothing | ||
2 | endfunction | ||
3 | // eof |
File tests/should-check/filter-non-boolean-return.j added (mode: 100644) (index 0000000..b94ef3b) | |||
1 | type agent extends handle | ||
2 | type boolexpr extends agent | ||
3 | type filterfunc extends boolexpr | ||
4 | native Filter takes code func returns filterfunc | ||
5 | |||
6 | function myF takes nothing returns integer | ||
7 | return 4 | ||
8 | endfunction | ||
9 | |||
10 | function myOtherF takes nothing returns nothing | ||
11 | call Filter(function myF) | ||
12 | endfunction |
File tests/should-check/if-1.j added (mode: 100644) (index 0000000..5c60493) | |||
1 | function a takes nothing returns nothing | ||
2 | if$2==0x00then | ||
3 | endif | ||
4 | endfunction |
File tests/should-check/rawcode.j added (mode: 100644) (index 0000000..244859c) | |||
1 | globals | ||
2 | integer rawcode0 ='a�b�' | ||
3 | integer rawcode1 = '\\' | ||
4 | integer rawcode2 = '"' | ||
5 | integer rawcode3 = '\b' | ||
6 | integer rawcode4 = '\t' | ||
7 | integer rawcode5 = '\r' | ||
8 | integer rawcode6 = '\n' | ||
9 | integer rawcode7 = '\f' | ||
10 | integer rawcode8 = 'abcd' | ||
11 | integer rawcode9 = 'a' | ||
12 | endglobals |
File tests/should-check/rb-annotation-1.j added (mode: 100644) (index 0000000..9df4296) | |||
1 | //# +rb | ||
2 | type foo extends integer | ||
3 | //# +rb | ||
4 | |||
5 | // this does not throw an error | ||
6 | //# +rb | ||
7 | function bar takes handle h returns integer //# some comment | ||
8 | return h | ||
9 | return 0 | ||
10 | endfunction | ||
11 | //# +rb |
File tests/should-check/rb-annotation-2.j added (mode: 100644) (index 0000000..6138938) | |||
1 | //#+rb | ||
2 | function bar takes handle h returns integer | ||
3 | return h | ||
4 | return 0 | ||
5 | endfunction |
File tests/should-check/rb-with-eof.j added (mode: 100644) (index 0000000..922f12b) | |||
1 | function x takes nothing returns nothing | ||
2 | endfunction | ||
3 | //# +rb |
File tests/should-check/return-type-conv.j added (mode: 100644) (index 0000000..9b286bd) | |||
1 | type unit extends handle | ||
2 | function b takes unit u returns handle | ||
3 | return u | ||
4 | endfunction |
File tests/should-fail/lineno.j added (mode: 100644) (index 0000000..757a030) | |||
1 | globals | ||
2 | string O | ||
3 | integer T | ||
4 | endglobals | ||
5 | //+rb | ||
6 | function b takes nothing returns nothing | ||
7 | call error_on_line_7() | ||
8 | // 0x13 | ||
9 | set T = ' ' | ||
10 | // 0x10 | ||
11 | set T = ' | ||
12 | ' | ||
13 | // 0x13 | ||
14 | set O = " " | ||
15 | // 0x10 | ||
16 | set O = " | ||
17 | " | ||
18 | // 0x1013 | ||
19 | set O = " | ||
20 | " | ||
21 | call error_on_line_23() | ||
22 | endfunction |
File tests/should-fail/rawcodelit-1.j added (mode: 100644) (index 0000000..b4a723d) | |||
1 | globals | ||
2 | integer e = '\\abc' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-10.j added (mode: 100644) (index 0000000..ffa84ad) | |||
1 | globals | ||
2 | integer n = '\\ab' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-11.j added (mode: 100644) (index 0000000..dbde48b) | |||
1 | globals | ||
2 | integer o = 'a\\b' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-12.j added (mode: 100644) (index 0000000..05699f3) | |||
1 | globals | ||
2 | integer p = 'ab\\' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-13.j added (mode: 100644) (index 0000000..2c660a2) | |||
1 | globals | ||
2 | integer q = '\xabc' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-14.j added (mode: 100644) (index 0000000..df66340) | |||
1 | globals | ||
2 | integer r = 'a\xbc' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-15.j added (mode: 100644) (index 0000000..a718147) | |||
1 | globals | ||
2 | integer s = 'ab\xc' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-16.j added (mode: 100644) (index 0000000..632924f) | |||
1 | globals | ||
2 | integer t = '\\\\ab' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-18.j added (mode: 100644) (index 0000000..f3a93c4) | |||
1 | globals | ||
2 | integer u = 'ab\\\x' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-19.j added (mode: 100644) (index 0000000..ddc12a5) | |||
1 | globals | ||
2 | integer i4 = '\ | ||
3 | ab'//Passes, though it's invalid. | ||
4 | endglobals |
File tests/should-fail/rawcodelit-2.j added (mode: 100644) (index 0000000..4084a28) | |||
1 | globals | ||
2 | integer f = 'a\\bc' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-20.j added (mode: 100644) (index 0000000..6d7fbf7) | |||
1 | globals | ||
2 | integer i4 = '\ | ||
3 | ' | ||
4 | endglobals |
File tests/should-fail/rawcodelit-3.j added (mode: 100644) (index 0000000..474ea8c) | |||
1 | globals | ||
2 | integer g = 'ab\\c' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-4.j added (mode: 100644) (index 0000000..2a605a7) | |||
1 | globals | ||
2 | integer h = 'abc\\' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-5.j added (mode: 100644) (index 0000000..e9fd9e2) | |||
1 | globals | ||
2 | integer i = '\x' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-6.j added (mode: 100644) (index 0000000..68fc070) | |||
1 | globals | ||
2 | integer j = 'ab' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-7.j added (mode: 100644) (index 0000000..7992b4a) | |||
1 | globals | ||
2 | integer k = 'abc' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-8.j added (mode: 100644) (index 0000000..ee3a7b9) | |||
1 | globals | ||
2 | integer l = 'a\\' | ||
3 | endglobals |
File tests/should-fail/rawcodelit-9.j added (mode: 100644) (index 0000000..4d65e14) | |||
1 | globals | ||
2 | integer m = '\\a' | ||
3 | endglobals |
File tests/should-fail/rb-annotation-2.j added (mode: 100644) (index 0000000..ab491f9) | |||
1 | //# +rb | ||
2 | function foo takes handle h returns integer | ||
3 | return h | ||
4 | return 0 | ||
5 | endfunction | ||
6 | |||
7 | // just a plain old comment | ||
8 | function bar takes handle h returns integer | ||
9 | return h | ||
10 | return 0 | ||
11 | endfunction |
File tests/should-fail/rb-annotation-3.j added (mode: 100644) (index 0000000..4826f8c) | |||
1 | //# +rbutts | ||
2 | function foo takes handle h returns unit | ||
3 | return h | ||
4 | return null | ||
5 | endfunction |
File tests/should-fail/rb-annotation.j added (mode: 100644) (index 0000000..a6e1539) | |||
1 | //# +rb | ||
2 | |||
3 | function foo takes handle h returns integer | ||
4 | return h | ||
5 | return 0 | ||
6 | endfunction |
File tests/should-fail/return-check.j added (mode: 100644) (index 0000000..47e8c84) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return 1 | ||
7 | endif | ||
8 | endfunction |
File tests/should-fail/return-int-literal-when-real-expected.j added (mode: 100644) (index 0000000..fc70d83) | |||
1 | function test takes nothing returns real | ||
2 | return 1123477881 | ||
3 | endfunction |
File tests/should-fail/return-type-conv.j added (mode: 100644) (index 0000000..24846fc) | |||
1 | function a takes handle h returns unit | ||
2 | return h | ||
3 | endfunction |
File tests/should-fail/shoudlnt-crash.j added (mode: 100644) (index 0000000..e052369) | |||
1 | // this file used to crash pjass | ||
2 | // found by afl (this is a reduced file though) | ||
3 | |||
4 | //# +rb | ||
5 | function bar takes handle h returns integer | ||
6 | return 0 | ||
7 | type foo extends integer | ||
8 | endfunction |
File tests/should-fail/shouldnt-crash-1.j added (mode: 100644) (index 0000000..b58ee34) |
File tests/should-fail/shouldnt-crash-10.j added (mode: 100644) (index 0000000..4c81b17) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return local a a | ||
7 | endfunction |
File tests/should-fail/shouldnt-crash-11.j added (mode: 100644) (index 0000000..7935aae) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return local a arraydfunction |
File tests/should-fail/shouldnt-crash-12.j added (mode: 100644) (index 0000000..ae9a1d3) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return type a extends anction |
File tests/should-fail/shouldnt-crash-13.j added (mode: 100644) (index 0000000..8d0085e) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return 1type a extends action |
File tests/should-fail/shouldnt-crash-14.j added (mode: 100644) (index 0000000..cc4171c) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return 1 local a aendfunction |
File tests/should-fail/shouldnt-crash-15.j added (mode: 100644) (index 0000000..5901430) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return 1 type a extends ation |
File tests/should-fail/shouldnt-crash-16.j added (mode: 100644) (index 0000000..259449c) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return 1 | ||
7 | local | ||
8 | endfunction |
File tests/should-fail/shouldnt-crash-17.j added (mode: 100644) (index 0000000..8d0b3c2) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return 1 | ||
7 | type a extends aon |
File tests/should-fail/shouldnt-crash-18.j added (mode: 100644) (index 0000000..4f060f5) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then local a a = a | ||
5 | else | ||
6 | return 1 | ||
7 | endif | ||
8 | endfunction |
File tests/should-fail/shouldnt-crash-19.j added (mode: 100644) (index 0000000..47f6028) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | local else | ||
6 | return 1 | ||
7 | endif | ||
8 | endfunction |
File tests/should-fail/shouldnt-crash-2.j added (mode: 100644) (index 0000000..574a6db) | |||
1 | function a takes nothineger | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | local a a = aendif | ||
7 | endfunction |
File tests/should-fail/shouldnt-crash-20.j added (mode: 100644) (index 0000000..8f64ff1) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | local a a else | ||
6 | return 1 | ||
7 | endif | ||
8 | endfunction |
File tests/should-fail/shouldnt-crash-21.j added (mode: 100644) (index 0000000..0905ab6) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return 1local | ||
7 | endif | ||
8 | endfunction |
File tests/should-fail/shouldnt-crash-22.j added (mode: 100644) (index 0000000..8153e6f) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return 1 | ||
7 | type a extends aendif | ||
8 | endfunction |
File tests/should-fail/shouldnt-crash-23.j added (mode: 100644) (index 0000000..6a03679) | |||
1 | function a i}g rVturns integer | ||
2 | if trufalse then | ||
3 | else � return 1local a a = afuncGion � |
File tests/should-fail/shouldnt-crash-24.j added (mode: 100644) (index 0000000..dda996c) | |||
1 | funct�on a takes nothing returns integer | ||
2 | if hrue then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return local a a = adfunc_ion |
File tests/should-fail/shouldnt-crash-25.j added (mode: 100644) (index 0000000..3ce3edf) |
File tests/should-fail/shouldnt-crash-26.j added (mode: 100644) (index 0000000..fd775d8) | |||
1 | function a takes nothing ]eturns integer | ||
2 | if true then | ||
3 | retvrn 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return 1 local a a = aunction |
File tests/should-fail/shouldnt-crash-27.j added (mode: 100644) (index 0000000..0a12531) | |||
1 | function a takes@nothi"abc"turns integer | ||
2 | if true then | ||
3 | rtruen 0 | ||
4 | elseif fal*e then | ||
5 | else | ||
6 | return O �type a extends ageon |
File tests/should-fail/shouldnt-crash-28.j added (mode: 100644) (index 0000000..7ea288f) | |||
1 | function a takes nothin� returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | ������������local a a = a | ||
6 | endfunction |
File tests/should-fail/shouldnt-crash-29.j added (mode: 100644) (index 0000000..ef13fc6) | |||
1 | function a takes nothing returns Ynteger | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | local a arrayndif | ||
7 | endfunction |
File tests/should-fail/shouldnt-crash-3.j added (mode: 100644) (index 0000000..12e8744) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | type a extends a1 | ||
6 | endif | ||
7 | endfunction |
File tests/should-fail/shouldnt-crash-30.j added (mode: 100644) (index 0000000..ed433f0) | |||
1 | function a takes nothing r�turns integnr | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false thenn 0 | ||
5 | elseif false | ||
6 | else | ||
7 | type a extendsasssssssssssfunction |
File tests/should-fail/shouldnt-crash-31.j added (mode: 100644) (index 0000000..56c42c2) |
File tests/should-fail/shouldnt-crash-32.j added (mode: 100644) (index 0000000..75f7b1c) | |||
1 | funRtion a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | return type a extends anction |
File tests/should-fail/shouldnt-crash-33.j added (mode: 100644) (index 0000000..14dc299) | |||
1 | function a takes nothing retu�ns int�er | ||
2 | e then | ||
3 | return 0 | ||
4 | el if _rue then | ||
5 | return 0 | ||
6 | elseif false then | ||
7 | else local a a = a endif | ||
8 | endfunctiom� |
File tests/should-fail/shouldnt-crash-34.j added (mode: 100644) (index 0000000..3c1298b) |
File tests/should-fail/shouldnt-crash-35.j added (mode: 100644) (index 0000000..948c806) |
File tests/should-fail/shouldnt-crash-36.j added (mode: 100644) (index 0000000..4e41e5c) |
File tests/should-fail/shouldnt-crash-4.j added (mode: 100644) (index 0000000..80fdb82) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else local a array endif | ||
6 | endfunction |
File tests/should-fail/shouldnt-crash-5.j added (mode: 100644) (index 0000000..437b164) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else local a a = a endif | ||
6 | endfunction |
File tests/should-fail/shouldnt-crash-6.j added (mode: 100644) (index 0000000..353e27b) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else type a extends adif | ||
6 | endfunction |
File tests/should-fail/shouldnt-crash-7.j added (mode: 100644) (index 0000000..1843194) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | local a a1 | ||
7 | endif | ||
8 | endfunction |
File tests/should-fail/shouldnt-crash-8.j added (mode: 100644) (index 0000000..374cc3d) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | local a a = aendif | ||
7 | endfunction |
File tests/should-fail/shouldnt-crash-9.j added (mode: 100644) (index 0000000..9bd9ba6) | |||
1 | function a takes nothing returns integer | ||
2 | if true then | ||
3 | return 0 | ||
4 | elseif false then | ||
5 | else | ||
6 | type a extends aif | ||
7 | endfunction |
File tests/should-fail/stringlit.j added (mode: 100644) (index 0000000..347290e) | |||
1 | globals | ||
2 | string x = "\ | ||
3 | " | ||
4 | endglobals |
File tests/should-fail/uninitialized-var.j added (mode: 100644) (index 0000000..1af928f) | |||
1 | function x takes nothing returns integer | ||
2 | local integer a | ||
3 | return a | ||
4 | endfunction |