aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-10 06:41:07 +0000
committerChris Lattner <sabre@nondot.org>2002-11-10 06:41:07 +0000
commite9a1cbbfe078b0982042a151a29532cba3a645ac (patch)
treee4decce5c55a4db0b8983dabd54abf570208c1bb
parenta2b8d7bff28bcee2b375ca74dca53f12218ff2b6 (diff)
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
-rw-r--r--test/Transforms/DSAnalysis/recursion.ll24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/Transforms/DSAnalysis/recursion.ll b/test/Transforms/DSAnalysis/recursion.ll
new file mode 100644
index 0000000000..669b0a4e1b
--- /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
+}
+