1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-10-04 05:59:26 +00:00

Added bool min test

This commit is contained in:
Jesper Gravgaard 2018-04-18 20:03:39 +02:00
parent 1ae9dbb6cf
commit e319ec9260
2 changed files with 16 additions and 0 deletions

View File

@ -45,6 +45,11 @@ public class TestPrograms {
AsmFragmentTemplateUsages.logUsages(log, false, false, false, false, false, false);
}
@Test
public void testBoolMin() throws IOException, URISyntaxException {
compileAndCompare("bool-min");
}
@Test
public void testInlineString3() throws IOException, URISyntaxException {
try {

View File

@ -0,0 +1,11 @@
// A Minimal test of boolean variables.
// Boolean variables are bytes under the hood
// 0: false, !=0 : true
void main() {
const byte* SCREEN = $400;
boolean b = true;
if(b) {
*SCREEN = 't';
}
}