New testcase
authorChris Lattner <sabre@nondot.org>
Thu, 18 Jul 2002 04:25:11 +0000 (04:25 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Jul 2002 04:25:11 +0000 (04:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2956 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/GlobalDCE/2002-07-17-CastRef.ll [new file with mode: 0644]

diff --git a/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll b/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll
new file mode 100644 (file)
index 0000000..d68d393
--- /dev/null
@@ -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
+}