mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 07:14:53 +00:00
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:
parent
5ff7ef5396
commit
8d248c51e9
11
test/Transforms/LevelRaise/2003-05-01-CallCast.ll
Normal file
11
test/Transforms/LevelRaise/2003-05-01-CallCast.ll
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user