mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Partial specialization test should not depend on the order of specialization operations or the names assigned to the specialized functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72d13ff755
commit
caa54d0c6f
@ -1,7 +1,7 @@
|
||||
; If there are two specializations of a function, make sure each callsite
|
||||
; calls the right one.
|
||||
;
|
||||
; RUN: opt -S -partialspecialization %s | FileCheck %s
|
||||
; RUN: opt -S -partialspecialization %s | opt -S -inline %s | FileCheck %s
|
||||
declare void @callback1()
|
||||
declare void @callback2()
|
||||
|
||||
@ -14,13 +14,13 @@ define void @foo(void()* %pNonConstCallback)
|
||||
{
|
||||
Entry:
|
||||
; CHECK: Entry
|
||||
; CHECK-NEXT: call void @UseCallback1()
|
||||
; CHECK-NEXT: call void @UseCallback1()
|
||||
; CHECK-NEXT: call void @UseCallback2()
|
||||
; CHECK-NEXT: call void @UseCallback(void ()* %pNonConstCallback)
|
||||
; CHECK-NEXT: call void @UseCallback1()
|
||||
; CHECK-NEXT: call void @UseCallback2()
|
||||
; CHECK-NEXT: call void @UseCallback2()
|
||||
; 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()
|
||||
call void @UseCallback(void()* @callback1)
|
||||
call void @UseCallback(void()* @callback1)
|
||||
call void @UseCallback(void()* @callback2)
|
||||
|
Loading…
Reference in New Issue
Block a user