Add compiler test for puts libc function
This commit is contained in:
parent
eb2c1c8aed
commit
6c7fcf6045
|
@ -9,6 +9,13 @@ testUnit (test,
|
|||
0,
|
||||
)}
|
||||
|
||||
func TestPuts (test *testing.T) {
|
||||
testUnit (test,
|
||||
"/test-data/data/puts", nil,
|
||||
"", "hello\n",
|
||||
0,
|
||||
)}
|
||||
|
||||
func TestExitCode13 (test *testing.T) {
|
||||
testUnit (test,
|
||||
"/test-data/data/exit-code-13", nil,
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
'aaad83b9-6610-45c4-ad89-4c28cf3a3b26'
|
||||
+ 'cstdio'
|
|
@ -0,0 +1,4 @@
|
|||
[main]: I32 'main' = {
|
||||
cstdio::[puts 'hello']
|
||||
0
|
||||
}
|
Loading…
Reference in New Issue