test-compiled-code #48
@ -32,3 +32,10 @@ testUnit (test,
|
||||
"", "Hello, /usr/src!\n",
|
||||
0,
|
||||
)}
|
||||
|
||||
func TestArgC (test *testing.T) {
|
||||
testUnit (test,
|
||||
"/test-data/data/argc", nil,
|
||||
"", "",
|
||||
2, "arg1", "arg2",
|
||||
)}
|
||||
|
1
compiler/test-data/data/argc/fspl.mod
Normal file
1
compiler/test-data/data/argc/fspl.mod
Normal file
@ -0,0 +1 @@
|
||||
'2b4a9e61-1f87-4173-b6d5-c0174b0abe43'
|
1
compiler/test-data/data/argc/main.fspl
Normal file
1
compiler/test-data/data/argc/main.fspl
Normal file
@ -0,0 +1 @@
|
||||
[main argc:I32 argv:**Byte]: I32 'main' = [- argc 1]
|
Loading…
Reference in New Issue
Block a user