From: Chris Lattner Date: Sun, 10 Nov 2002 06:41:07 +0000 (+0000) Subject: Add new test that causes infinite recursion in bu pass X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e9a1cbbfe078b0982042a151a29532cba3a645ac;p=oota-llvm.git Add new test that causes infinite recursion in bu pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4669 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/DSAnalysis/recursion.ll b/test/Transforms/DSAnalysis/recursion.ll new file mode 100644 index 00000000000..669b0a4e1b7 --- /dev/null +++ b/test/Transforms/DSAnalysis/recursion.ll @@ -0,0 +1,24 @@ +implementation ; Functions: + +declare void %__main() + +void %A(int* %L) { +bb0: ; No predecessors! + call void %B( int* %L ) + call void %A( int* %L ) + ret void +} + +void %B(int* %L) { +bb0: ; No predecessors! + call void %A( int* %L ) + ret void +} + +void %main() { +bb0: ; No predecessors! + call void %__main( ) + call void %A( int* null ) + ret void +} +