summaryrefslogtreecommitdiff
path: root/test/BugPoint/crash-narrowfunctiontest.ll
blob: 3ee9f8aa0ebb1d37cdf4076737e50b09de27dc25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; Test that bugpoint can narrow down the testcase to the important function
;
; RUN: bugpoint %s -bugpoint-crashcalls -silence-passes > /dev/null

define i32 @foo() { ret i32 1 }

define i32 @test() {
	call i32 @test()
	ret i32 %1
}

define i32 @bar() { ret i32 2 }