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:
Kenneth Uildriks 2010-06-26 18:47:40 +00:00
parent 72d13ff755
commit caa54d0c6f

View File

@ -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)