From 32b8c8f33ad68982357c1fa3d0f132d06b070ab5 Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Thu, 2 Dec 2021 11:50:03 +0000 Subject: Expand sharpening's ComputeLoadClassKind to cover cross-dex cases We can handle some extra cross-dex cases in order to expand the support. Bug: 154012332 Test: ART tests Change-Id: Ic3220d809086b4b3007bf5b6d63789ffb1b91fb9 --- .../2238-checker-load-class-multidex/src/Main.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/2238-checker-load-class-multidex/src/Main.java (limited to 'test/2238-checker-load-class-multidex/src/Main.java') diff --git a/test/2238-checker-load-class-multidex/src/Main.java b/test/2238-checker-load-class-multidex/src/Main.java new file mode 100644 index 0000000000..a2f595dcab --- /dev/null +++ b/test/2238-checker-load-class-multidex/src/Main.java @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2021 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. + */ + +final class Main { + public static void main(String[] args) { + pkg1.SubClass.$noinline$callMethod(); + Caller.doCall(); + } +} -- cgit v1.2.3-59-g8ed1b