summaryrefslogtreecommitdiffstats
path: root/test/108-check-cast/info.txt
diff options
context:
space:
mode:
authorDragos Sbirlea <dragoss@google.com>2013-06-04 15:01:40 -0700
committerDragos Sbirlea <dragoss@google.com>2013-06-04 15:50:14 -0700
commit980d16b81f3dd78eb491b80bed9cd184016878c6 (patch)
tree93b06ee8e66568a3a224798c3aa35768ea0c7e05 /test/108-check-cast/info.txt
parent8d3a117b374352a1853fae9b7306afeaaa9e3b91 (diff)
downloadart-980d16b81f3dd78eb491b80bed9cd184016878c6.zip
art-980d16b81f3dd78eb491b80bed9cd184016878c6.tar.gz
art-980d16b81f3dd78eb491b80bed9cd184016878c6.tar.bz2
Stage 2 of cast elision opt.
NO code is generated for check-casts where we can statically determine the type is correct (through the instaceof-ifeq pattern). Change-Id: I4935375d7ffd4e7d4ff0aaad900c1a4de9deefaa
Diffstat (limited to 'test/108-check-cast/info.txt')
-rw-r--r--test/108-check-cast/info.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/108-check-cast/info.txt b/test/108-check-cast/info.txt
new file mode 100644
index 0000000..e7ffa4f
--- /dev/null
+++ b/test/108-check-cast/info.txt
@@ -0,0 +1,10 @@
+This test relies on the correct behavior of instance-of to test check-cast behavior,
+as shown below:
+
+
+CCE throw| InstanceOf | Correct?
+---------+------------+----------
+ 1 | 0 | OK
+ 1 | 1 | BAD
+ 0 | 0 | BAD
+ 0 | 1 | OK \ No newline at end of file