blob: 7a896a2b8d7743d0fcd6e9b8a9fd8ac84b0ce30a [file] [log] [blame]
Nicolas Geoffray0950abe82016-05-25 14:52:37 +01001# Copyright (C) 2016 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15.class public LSubClassUsingInaccessibleMethod;
16
17.super Lother/PublicClass;
18
19.method public constructor <init>()V
20 .registers 1
21 invoke-direct {p0}, Lother/PublicClass;-><init>()V
22 return-void
23.end method
24
25# Regression test for compiler DCHECK() failure (bogus check) when referencing
26# a package-private method from an indirectly inherited package-private class,
27# using this very class as the declaring class in the MethodId, bug: 28771056.
28.method public test()I
29 .registers 2
30 invoke-virtual {p0}, LSubClassUsingInaccessibleMethod;->otherProtectedClassPackageIntInstanceMethod()I
31 move-result v0
32 return v0
33.end method