Add compiler test for puts libc function

This commit is contained in:
Sasha Koshka 2024-03-26 01:18:39 -04:00
parent eb2c1c8aed
commit 6c7fcf6045
3 changed files with 13 additions and 0 deletions

View File

@ -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,

View File

@ -0,0 +1,2 @@
'aaad83b9-6610-45c4-ad89-4c28cf3a3b26'
+ 'cstdio'

View File

@ -0,0 +1,4 @@
[main]: I32 'main' = {
cstdio::[puts 'hello']
0
}