aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-18 04:25:11 +0000
committerChris Lattner <sabre@nondot.org>2002-07-18 04:25:11 +0000
commit4f5e49c20df4145571daa895c0efb1088f1b41e7 (patch)
treebfdb1caf778d69a8a453e4de80b2c3fb3b2b6cb0
parente28751f388ea398b3f0fdc44f1f7c7287005fab0 (diff)
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2956 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Transforms/GlobalDCE/2002-07-17-CastRef.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll b/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll
new file mode 100644
index 0000000000..d68d3930c6
--- /dev/null
+++ b/test/Transforms/GlobalDCE/2002-07-17-CastRef.ll
@@ -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
+}