From b58d0d54a1a32b5121f94c47a735c674320cf294 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 9 Oct 2002 00:09:59 +0000 Subject: [PATCH] New testcase for infinite loop that the raise pass is getting into git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4087 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../LevelRaise/2002-10-08-VarArgCallInfLoop.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/Transforms/LevelRaise/2002-10-08-VarArgCallInfLoop.ll diff --git a/test/Transforms/LevelRaise/2002-10-08-VarArgCallInfLoop.ll b/test/Transforms/LevelRaise/2002-10-08-VarArgCallInfLoop.ll new file mode 100644 index 00000000000..111cddca5a3 --- /dev/null +++ b/test/Transforms/LevelRaise/2002-10-08-VarArgCallInfLoop.ll @@ -0,0 +1,10 @@ +; Due to a recent change, this testcase now sends the raise pass into an infinite loop +; +; RUN: as < %s | opt -raise + +implementation + +void %test(sbyte* %P, void(...) * %F) { + call void (...)* %F(sbyte* %P) + ret void +}