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], [3 x i8]* @.str, i32 0, i32 0), i32 97), !dbg !5
12 declare i32 @printf(i8*, ...)
15 !llvm.module.flags = !{!10}
18 !0 = !MDSubprogram(name: "foo", line: 4, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, file: !8, scope: !1, type: !3, function: void ()* @foo)
19 !1 = !MDFile(filename: "m.c", directory: "/private/tmp")
20 !2 = !MDCompileUnit(language: DW_LANG_C99, producer: "clang", isOptimized: true, emissionKind: 0, file: !8, enums: !{}, retainedTypes: !{}, subprograms: !9)
21 !3 = !MDSubroutineType(types: !4)
23 !5 = !MDLocation(line: 5, column: 2, scope: !6)
24 !6 = distinct !MDLexicalBlock(line: 4, column: 12, file: !8, scope: !0)
25 !7 = !MDLocation(line: 6, column: 1, scope: !6)
26 !8 = !MDFile(filename: "m.c", directory: "/private/tmp")
28 !10 = !{i32 1, !"Debug Info Version", i32 3}