1; RUN: opt -inline -mergefunc -disable-output < %s
2
3; This tests for a bug where the inliner kept the functions in a ValueMap after
4; it had completed and a ModulePass started to run. LLVM would crash deleting
5; a function that was still a key in the ValueMap.
6
7define internal fastcc void @list_Cdr1918() nounwind inlinehint {
8  unreachable
9}
10
11define internal fastcc void @list_PairSecond1927() nounwind inlinehint {
12  call fastcc void @list_Cdr1918() nounwind inlinehint
13  unreachable
14}
15
16define internal fastcc void @list_Cdr3164() nounwind inlinehint {
17  unreachable
18}
19
20define internal fastcc void @list_Nconc3167() nounwind inlinehint {
21  call fastcc void @list_Cdr3164() nounwind inlinehint
22  unreachable
23}
24
25define void @term_Equal() nounwind {
26  call fastcc void @list_Cdr3164() nounwind inlinehint
27  unreachable
28}
29