New testcase: do not "raise" a call that is not through a function pointer!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-05-01 21:02:35 +00:00
parent 5ff7ef5396
commit 8d248c51e9

View File

@ -0,0 +1,11 @@
; RUN: if as < %s | opt -raise | dis | grep cast
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
void %test(...) { ret void }
void %caller() {
call void (...) *%test()
ret void
}