1 ; RUN: llc -O0 < %s -o /dev/null 2 ; Ignore unreachable scopes. 3 declare void @foo(i32) noreturn 4 5 define i32 @bar() nounwind ssp { 6 entry: 7 br i1 undef, label %bb, label %bb11, !dbg !0 8 9 bb: ; preds = %entry 10 call void @foo(i32 0) noreturn nounwind, !dbg !7 11 unreachable, !dbg !7 12 13 bb11: ; preds = %entry 14 ret i32 1, !dbg !11 15 } 16 17 !llvm.dbg.cu = !{!3} 18 19 !0 = metadata !{i32 8647, i32 0, metadata !1, null} 20 !1 = metadata !{i32 458763, metadata !12, metadata !2, i32 0, i32 0, i32 0} ; [ DW_TAG_lexical_block ] 21 !2 = metadata !{i32 458798, null, metadata !3, metadata !"bar", metadata !"bar", metadata !"bar", i32 8639, metadata !4, i1 true, i1 true, i32 0, i32 0, null, i32 0, i32 0, null, null, null, null, i32 0} ; [ DW_TAG_subprogram ] 22 !3 = metadata !{i32 458769, metadata !12, i32 1, metadata !"LLVM build 00", i1 true, metadata !"", i32 0, metadata !13, metadata !13, metadata !14, null, null, metadata !""} ; [ DW_TAG_compile_unit ] 23 !4 = metadata !{i32 458773, null, metadata !3, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !5, i32 0} ; [ DW_TAG_subroutine_type ] 24 !5 = metadata !{metadata !6} 25 !6 = metadata !{i32 458788, null, metadata !3, metadata !"char", i32 0, i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ] 26 !7 = metadata !{i32 8648, i32 0, metadata !8, null} 27 !8 = metadata !{i32 458763, metadata !12, metadata !9, i32 0, i32 0, i32 0} ; [ DW_TAG_lexical_block ] 28 !9 = metadata !{i32 458763, metadata !12, metadata !10, i32 0, i32 0, i32 0} ; [ DW_TAG_lexical_block ] 29 !10 = metadata !{i32 458798, null, metadata !3, metadata !"bar2", metadata !"bar2", metadata !"bar2", i32 8639, metadata !4, i1 true, i1 true, i32 0, i32 0, null, i32 0, i32 0, null, null, null, null, i32 0} ; [ DW_TAG_subprogram ] 30 !11 = metadata !{i32 8652, i32 0, metadata !1, null} 31 !12 = metadata !{metadata !"c-parser.c", metadata !"llvmgcc"} 32 !13 = metadata !{i32 0} 33 !14 = metadata !{metadata !2} 34