1 ; RUN: opt < %s -deadargelim -die -S > %t
2 ; RUN: cat %t | grep 123
4 ; This test tries to catch wrongful removal of return values for a specific case
5 ; that was breaking llvm-gcc builds.
7 ; This function has a live return value, it is used by @alive.
8 define internal i32 @test5() {
12 ; This function doesn't use the return value @test5 and tries to lure DAE into
13 ; marking @test5's return value dead because only this call is unused.
15 %DEAD = call i32 @test5()
19 ; This function ensures the retval of @test5 is live.
21 %LIVE = call i32 @test5()