1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-02-04 00:30:43 +00:00

Improved log output slightly.

This commit is contained in:
Jesper Gravgaard 2020-10-05 17:53:46 +02:00
parent f117db148d
commit 0995c29f0f
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ public class PointerDereferenceIndexed implements PointerDereference {
@Override @Override
public String toString(Program program) { public String toString(Program program) {
String pointerString = pointer.toString(program); String pointerString = pointer.toString(program);
if(!pointerString.matches("[a-zA-Z0-9:#$]*")) if(!pointerString.matches("[a-zA-Z0-9:#$_]*"))
pointerString = "(" + pointerString + ")"; pointerString = "(" + pointerString + ")";
return pointerString + "[" + index.toString(program) + ']'; return pointerString + "[" + index.toString(program) + ']';
} }

View File

@ -1906,7 +1906,7 @@ public class TestPrograms {
@Test @Test
public void testInitializer5() throws IOException, URISyntaxException { public void testInitializer5() throws IOException, URISyntaxException {
compileAndCompare("initializer-5.c", log()); compileAndCompare("initializer-5.c");
} }
/* /*
@ -4317,7 +4317,7 @@ public class TestPrograms {
@Test @Test
public void testIncD0202() throws IOException, URISyntaxException { public void testIncD0202() throws IOException, URISyntaxException {
compileAndCompare("incd020-2.c", log()); compileAndCompare("incd020-2.c");
} }
@Test @Test