1 ; RUN: opt < %s -passes=asan -S | FileCheck %s
2 source_filename = "version.c"
3 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-apple-macosx10.12.0"
5 ; CHECK: @version = constant { [5 x i8], [27 x i8] } {{.*}}, !dbg ![[GV:.*]]
7 @version = constant [5 x i8] c"4.00\00", align 1, !dbg !0
10 !llvm.module.flags = !{!11, !12, !13}
12 ; Should not have an expression:
13 ; CHECK: ![[GV]] = !DIGlobalVariableExpression(var: ![[GVAR:.*]], expr: !DIExpression())
14 ; CHECK: ![[GVAR]] = !DIGlobalVariable(name: "version"
16 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
17 !1 = !DIGlobalVariable(name: "version", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)
18 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 4.0.0 (trunk 281923) (llvm/trunk 281916)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)
19 !3 = !DIFile(filename: "version.c", directory: "/Volumes/Fusion/Data/radar/24899262")
22 !6 = !DICompositeType(tag: DW_TAG_array_type, baseType: !7, size: 40, align: 8, elements: !9)
23 !7 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !8)
24 !8 = !DIBasicType(name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char)
26 !10 = !DISubrange(count: 5)
27 !11 = !{i32 2, !"Dwarf Version", i32 4}
28 !12 = !{i32 2, !"Debug Info Version", i32 3}
29 !13 = !{i32 1, !"PIC Level", i32 2}
30 !14 = !{!"clang version 4.0.0 (trunk 281923) (llvm/trunk 281916)"}