From b5493b772cb98a79a7c7ccb85f2b7bdef6c0f2a8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 10 Nov 2002 06:41:07 +0000 Subject: [PATCH] Add new test that causes infinite recursion in bu pass llvm-svn: 4669 --- .../Transforms/DSAnalysis/recursion.ll | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/Regression/Transforms/DSAnalysis/recursion.ll diff --git a/test/Regression/Transforms/DSAnalysis/recursion.ll b/test/Regression/Transforms/DSAnalysis/recursion.ll new file mode 100644 index 00000000000..669b0a4e1b7 --- /dev/null +++ b/test/Regression/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 +} +