# 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.

.class  public LTestCase;
.super  Ljava/lang/Object;


.method public constructor <init>()V
.registers 1
    invoke-direct {v0}, Ljava/lang/Object;-><init>()V
    return-void
.end method

.method public static filledNewArray()[Ljava/lang/Object;
.registers 1
    const v0, 0
    filled-new-array {v0}, [Lp/Foo;
    move-result-object v0
    return-object v0
.end method

.method public static filledNewArrayRange()[Ljava/lang/Object;
.registers 2
    const v0, 0
    const v1, 0
    filled-new-array/range {v0..v1}, [Lp/Foo;
    move-result-object v0
    return-object v0
.end method

.method public static newArray()V
.registers 1
    const v0, 0
    new-array v0, v0, [Lp/Foo;
    return-void
.end method
