summaryrefslogtreecommitdiff
path: root/test/478-checker-inliner-nested-loop/src/Main.java
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2015-05-28 11:14:54 +0100
committer David Brazdil <dbrazdil@google.com> 2015-05-28 11:57:49 +0100
commita06d66a4ee60926127b9498b7ff0b3e37a24fccf (patch)
tree87ec5d72211d5c3446e1d80ee71eda77faffd6b3 /test/478-checker-inliner-nested-loop/src/Main.java
parentb4e2fbbed28c3bcdb8fd0fee5a201ba78e1edf28 (diff)
ART: Distinguish Checker lines from comments
In order to prevent tests passing due to lines with hard-to-spot formatting errors begin ignored, e.g. by forgetting the colon after "//CHECK", Checker will now require its assertions to start with "///" or "##", respectivelly for Java and Smali. Such lines will never be ignored and will fail the test unless successfully parsed. Change-Id: I0da9a8f13eb96d950af8c85df17d1899a853a299
Diffstat (limited to 'test/478-checker-inliner-nested-loop/src/Main.java')
-rw-r--r--test/478-checker-inliner-nested-loop/src/Main.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/478-checker-inliner-nested-loop/src/Main.java b/test/478-checker-inliner-nested-loop/src/Main.java
index df583d9302..aa023491a5 100644
--- a/test/478-checker-inliner-nested-loop/src/Main.java
+++ b/test/478-checker-inliner-nested-loop/src/Main.java
@@ -33,12 +33,12 @@ public class Main {
return result;
}
- // CHECK-START: int Main.NestedLoop(int, int) inliner (before)
- // CHECK-NOT: Mul
+ /// CHECK-START: int Main.NestedLoop(int, int) inliner (before)
+ /// CHECK-NOT: Mul
- // CHECK-START: int Main.NestedLoop(int, int) inliner (after)
- // CHECK: Mul
- // CHECK-NOT: Mul
+ /// CHECK-START: int Main.NestedLoop(int, int) inliner (after)
+ /// CHECK: Mul
+ /// CHECK-NOT: Mul
public static int NestedLoop(int max_x, int max_y) {
int total = 0;