mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add new test that causes infinite recursion in bu pass
llvm-svn: 4669
This commit is contained in:
parent
96d1bfd014
commit
b5493b772c
24
test/Regression/Transforms/DSAnalysis/recursion.ll
Normal file
24
test/Regression/Transforms/DSAnalysis/recursion.ll
Normal file
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user