[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / DebugInfo / Generic / address_space_rvalue.ll
blobc73df5b734594a4425e273126383012582cb9623
1 ; REQUIRES: object-emission
3 ; RUN: %llc_dwarf -O0 -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s
5 ; This nonsensical example tests that address spaces for rvalue
6 ; references are produced.
8 ; CHECK: DW_TAG_rvalue_reference_type
9 ; CHECK-NOT: DW_TAG
10 ; CHECK: DW_AT_address_class    (0x00000001)
12 @y = global i8* null, align 8, !dbg !0
14 !llvm.dbg.cu = !{!5}
15 !llvm.module.flags = !{!8, !9}
17 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
18 !1 = !DIGlobalVariable(name: "x", scope: null, file: !2, line: 2, type: !3, isLocal: false, isDefinition: true)
19 !2 = !DIFile(filename: "test.cpp", directory: "/")
20 !3 = !DIDerivedType(tag: DW_TAG_rvalue_reference_type, baseType: !4, size: 64, align: 64, dwarfAddressSpace: 1)
21 !4 = !DIBasicType(name: "long long unsigned int", size: 64, encoding: DW_ATE_unsigned)
22 !5 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang version 3.5.0 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !6, retainedTypes: !6, globals: !7, imports: !6)
23 !6 = !{}
24 !7 = !{!0}
25 !8 = !{i32 2, !"Dwarf Version", i32 5}
26 !9 = !{i32 1, !"Debug Info Version", i32 3}