Add simpler full test

This commit is contained in:
Enrico Lumetti 2022-08-15 01:59:11 +02:00
parent a33bf77407
commit 3c41cf9876
2 changed files with 47 additions and 0 deletions

44
complete-tests/test0.bril Normal file
View File

@ -0,0 +1,44 @@
{
"functions": [
{
"args": [],
"instrs": [
{
"label": "start"
},
{
"dest": "tmp.0",
"op": "const",
"type": "int",
"value": 1
},
{
"dest": "tmp.1",
"op": "const",
"type": "int",
"value": 2
},
{
"args": [
"tmp.0",
"tmp.1"
],
"dest": "tmp.2",
"funcs": [],
"labels": [],
"op": "add",
"type": "int"
},
{
"args": [
"tmp.2"
],
"funcs": [],
"labels": [],
"op": "return"
}
],
"name": "main"
}
]
}

View File

@ -0,0 +1,3 @@
(Program '()
(Prim '+
(list (Int 1) (Int 2))))