# Copyright (c) 2021-2022 Huawei Device Co., Ltd. # 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. .record A .function i32 A.get95_virt(A a0) .record AotChaTest { } .function i32 AotChaTest.main() { newobj v0, A call.virt.short A.get95_virt, v0 return } #! CHECKER panda files with cha #! RUN_PAOC options: "--panda-files=../../basics_aot.checked/test.abc --paoc-use-cha=true --compiler-inlining=false" #! METHOD "AotChaTest::main" #! PASS_AFTER "Codegen" #! INST /CallVirtual.*A::get95_virt/ #! RUN options: "--panda-files=../../basics_aot.checked/test.abc", entry: "AotChaTest::main", result: 95 #! EVENT /AotLoadedForClass,.*,AotChaTest/ #! CHECKER panda files no cha #! RUN_PAOC options: "--panda-files=../../basics_aot.checked/test.abc --paoc-use-cha=false --compiler-inlining=false" #! METHOD "AotChaTest::main" #! PASS_AFTER "Codegen" #! INST /CallVirtual.*A::get95_virt/ #! RUN options: "--panda-files=../../basics_aot.checked/test.abc", entry: "AotChaTest::main", result: 95 #! EVENT /AotLoadedForClass,.*,AotChaTest/ #! CHECKER invalid aot panda files #! RUN_PAOC options: "--paoc-use-cha=true --compiler-inlining=false" #! METHOD "AotChaTest::main" #! PASS_AFTER "Codegen" #! INST /UnresolvedCallVirtual.*/ #! RUN options: "--panda-files=../../basics_aot.checked/test.abc", entry: "AotChaTest::main", abort: 6 #! EVENT_NOT /AotLoadedForClass,.*,AotChaTest/ #! CHECKER invalid runtime panda files #! RUN_PAOC options: "--panda-files=../../basics_aot.checked/test.abc --paoc-use-cha=true --compiler-inlining=false" #! METHOD "AotChaTest::main" #! PASS_AFTER "Codegen" #! INST /CallVirtual.*A::get95_virt/ #! RUN options: "", entry: "AotChaTest::main", abort: 6 #! EVENT_NOT /AotLoadedForClass,.*,AotChaTest/