mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-28 06:22:51 +01:00
New testcase
llvm-svn: 2956
This commit is contained in:
parent
e25d9fb4d5
commit
e9894ca2e7
12
test/Regression/Transforms/GlobalDCE/2002-07-17-CastRef.ll
Normal file
12
test/Regression/Transforms/GlobalDCE/2002-07-17-CastRef.ll
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
; RUN: as < %s | opt -globaldce
|
||||||
|
;
|
||||||
|
implementation
|
||||||
|
|
||||||
|
internal void %func() { ; Not dead, can be reachable via X
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
|
||||||
|
void %main() {
|
||||||
|
%X = cast void()* %func to int*
|
||||||
|
ret void
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user