1 ; RUN: opt -instcombine -S < %s | FileCheck %s
4 @.str = private constant [3 x i8] c"%c\00"
6 define void @foo() nounwind ssp {
7 ;CHECK: call i32 @putchar{{.+}} !dbg
8 %1 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([3 x i8]* @.str, i32 0, i32 0), i32 97), !dbg !5
12 declare i32 @printf(i8*, ...)
15 !llvm.module.flags = !{!10}
18 !0 = !{!"0x2e\00foo\00foo\00\004\000\001\000\006\000\000\000", !8, !1, !3, null, void ()* @foo, null, null, null} ; [ DW_TAG_subprogram ]
19 !1 = !{!"0x29", !8} ; [ DW_TAG_file_type ]
20 !2 = !{!"0x11\0012\00clang\001\00\000\00\000", !8, !4, !4, !9, null, null} ; [ DW_TAG_compile_unit ]
21 !3 = !{!"0x15\00\000\000\000\000\000\000", !8, !1, null, !4, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
23 !5 = !{i32 5, i32 2, !6, null}
24 !6 = !{!"0xb\004\0012\000", !8, !0} ; [ DW_TAG_lexical_block ]
25 !7 = !{i32 6, i32 1, !6, null}
26 !8 = !{!"m.c", !"/private/tmp"}
28 !10 = !{i32 1, !"Debug Info Version", i32 2}