forked from OSchip/llvm-project
Partial specialization test should not depend on the order of specialization operations or the names assigned to the specialized functions
llvm-svn: 106953
This commit is contained in:
parent
2041abd958
commit
7228d98b85
|
@ -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