diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-07 19:28:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-07 19:28:52 +0000 |
commit | 566dd149aef94f889f85272c9e8c898c51d6f198 (patch) | |
tree | 6a2b72f5003f5d52b3be92909abbfd4d7cdae351 | |
parent | 9bb399cf088154ec97f44603b03d80be469e9393 (diff) | |
download | external_llvm-566dd149aef94f889f85272c9e8c898c51d6f198.zip external_llvm-566dd149aef94f889f85272c9e8c898c51d6f198.tar.gz external_llvm-566dd149aef94f889f85272c9e8c898c51d6f198.tar.bz2 |
Testcase for a bug responsible for GCC bootstrap failure, fallout from PR411.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34004 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/DeadArgElim/2007-02-07-FuncRename.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/DeadArgElim/2007-02-07-FuncRename.ll b/test/Transforms/DeadArgElim/2007-02-07-FuncRename.ll new file mode 100644 index 0000000..7c0eb57 --- /dev/null +++ b/test/Transforms/DeadArgElim/2007-02-07-FuncRename.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | opt -deadargelim | llvm-dis | grep '@test(' && +; RUN: llvm-as < %s | opt -deadargelim | llvm-dis | not grep dead + +define internal i32 @test(i32 %X, i32 %dead) { + ret i32 %X +} + +define i32 @caller() { + %A = call i32 @test(i32 123, i32 456) + ret i32 %A +} |