summaryrefslogtreecommitdiffstats
path: root/test/498-type-propagation/src
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-06-15 09:01:08 +0100
committerNicolas Geoffray <ngeoffray@google.com>2015-06-18 09:22:38 +0100
commit23fad477d90b826956158aac41d70461c2c7a3ed (patch)
tree860abbd301c47e38a1535bf04063fdf800a5719d /test/498-type-propagation/src
parenta3b9d4eda1ef0845f307891f349eaf752750ac16 (diff)
downloadart-23fad477d90b826956158aac41d70461c2c7a3ed.zip
art-23fad477d90b826956158aac41d70461c2c7a3ed.tar.gz
art-23fad477d90b826956158aac41d70461c2c7a3ed.tar.bz2
Fix reference comparison after redundant phi elimination.
Otherwise, the graph could remain mistyped. bug:21776173 (cherry picked from commit 51d400d4ebd41b9fb4d67ac3179f8fb66a090fdd) Change-Id: Iff36dfa4e79b14a9dd85c37e0fbb9e1080dd0364
Diffstat (limited to 'test/498-type-propagation/src')
-rw-r--r--test/498-type-propagation/src/Main.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/498-type-propagation/src/Main.java b/test/498-type-propagation/src/Main.java
new file mode 100644
index 0000000..7a14172
--- /dev/null
+++ b/test/498-type-propagation/src/Main.java
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2015 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import java.lang.reflect.Method;
+
+public class Main {
+ public static void main(String[] args) throws Exception {
+ // Workaround for b/18051191.
+ System.out.println("Enter");
+ Class<?> c = Class.forName("TypePropagation");
+ Method m = c.getMethod("method", int[].class);
+ int[] array = new int[7];
+ Object[] arguments = { array };
+ m.invoke(null, arguments);
+ }
+}