mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Fixed and reactivated a partial specialization test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a8fa392691
commit
6e97e1d4be
@ -1,8 +1,8 @@
|
||||
; If there are two specializations of a function, make sure each callsite
|
||||
; calls the right one.
|
||||
;
|
||||
; RN: opt -S -partialspecialization %s | FileCheck %s
|
||||
; RUN: true
|
||||
; RUN: opt -S -partialspecialization -disable-inlining %s | opt -S -inline | FileCheck %s -check-prefix=CORRECT
|
||||
; RUN: opt -S -partialspecialization -disable-inlining %s | FileCheck %s
|
||||
declare void @callback1()
|
||||
declare void @callback2()
|
||||
|
||||
@ -14,14 +14,18 @@ define internal void @UseCallback(void()* %pCallback) {
|
||||
define void @foo(void()* %pNonConstCallback)
|
||||
{
|
||||
Entry:
|
||||
; CORRECT: Entry
|
||||
; CORRECT-NEXT: call void @callback1()
|
||||
; CORRECT-NEXT: call void @callback1()
|
||||
; CORRECT-NEXT: call void @callback2()
|
||||
; CORRECT-NEXT: call void %pNonConstCallback()
|
||||
; CORRECT-NEXT: call void @callback1()
|
||||
; CORRECT-NEXT: call void @callback2()
|
||||
; CORRECT-NEXT: call void @callback2()
|
||||
; CHECK: Entry
|
||||
; CHECK-NEXT: call void @callback1()
|
||||
; CHECK-NEXT: call void @callback1()
|
||||
; CHECK-NEXT: call void @callback2()
|
||||
; CHECK-NEXT: call void %pNonConstCallback()
|
||||
; CHECK-NEXT: call void @callback1()
|
||||
; CHECK-NEXT: call void @callback2()
|
||||
; CHECK-NEXT: call void @callback2()
|
||||
; CHECK-NOT: call void @UseCallback(void ()* @callback1)
|
||||
; CHECK-NOT: call void @UseCallback(void ()* @callback2)
|
||||
; CHECK: ret void
|
||||
call void @UseCallback(void()* @callback1)
|
||||
call void @UseCallback(void()* @callback1)
|
||||
call void @UseCallback(void()* @callback2)
|
||||
|
Loading…
Reference in New Issue
Block a user