From 05f1498efa07397bd9551d03a7d8b225b8a90256 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Wed, 14 Apr 2010 03:46:42 +0000 Subject: Commit testcase for r101213. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101214 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/DeadArgElim/deadexternal.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Transforms/DeadArgElim/deadexternal.ll (limited to 'test/Transforms/DeadArgElim') diff --git a/test/Transforms/DeadArgElim/deadexternal.ll b/test/Transforms/DeadArgElim/deadexternal.ll new file mode 100644 index 0000000000..84341781da --- /dev/null +++ b/test/Transforms/DeadArgElim/deadexternal.ll @@ -0,0 +1,12 @@ +; RUN: opt -deadargelim -S %s | FileCheck %s + +define void @test(i32) { + ret void +} + +define void @foo() { + call void @test(i32 0) + ret void +; CHECK: @foo +; CHECK: i32 undef +} -- cgit v1.2.3-18-g5258