summaryrefslogtreecommitdiff
path: root/test/727-checker-unresolved-class/src-ex/Test.java
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2020-08-18 09:29:51 +0100
committer Vladimir Marko <vmarko@google.com> 2020-08-24 09:32:55 +0000
commitcfd65805a5b3b0437e355b8044a05ee6c9d352c5 (patch)
treec91f72b2fe4325cbbc21b6d4a889ea87a7c3608f /test/727-checker-unresolved-class/src-ex/Test.java
parent095dc4611b8001861f8d0e621f9df704a933754a (diff)
Optimizing: Fix weak method access check.
And improve generated code for accessing package private methods from unresolved compiling class in the same package. Test: Additional test in 727-checker-unresolved-class Test: testrunner.py --host --optimizing --interpreter --jvm -t 727 Test: testrunner.py --host --optimizing Bug: 161898207 Change-Id: Ia34552d90620e8e0398099522a5a52b4a45df15d
Diffstat (limited to 'test/727-checker-unresolved-class/src-ex/Test.java')
-rw-r--r--test/727-checker-unresolved-class/src-ex/Test.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/727-checker-unresolved-class/src-ex/Test.java b/test/727-checker-unresolved-class/src-ex/Test.java
new file mode 100644
index 0000000000..1dd03c29ad
--- /dev/null
+++ b/test/727-checker-unresolved-class/src-ex/Test.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2020 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 resolved.SubclassOfUnresolvedClass;
+import resolved.SubclassOfUnresolvedClass2;
+import unresolved.UnresolvedClass;
+
+public class Test {
+ public static void $noinline$main() {
+ UnresolvedClass.$noinline$main();
+ SubclassOfUnresolvedClass.$noinline$main();
+ SubclassOfUnresolvedClass2.$noinline$main();
+ }
+}