summaryrefslogtreecommitdiff
path: root/test/BugPoint/crash-narrowfunctiontest.ll
blob: 197e42f59d5642eccc8cb99db89effd1ef9af1eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; Test that bugpoint can narrow down the testcase to the important function
;
; RUN: llvm-upgrade < %s > %t1.ll
; RUN: bugpoint %t1.ll -bugpoint-crashcalls

int %foo() { ret int 1 }

int %test() {
	call int %test()
	ret int %0
}

int %bar() { ret int 2 }