1 ; RUN: llvm-as < %s -o %t.bc -data-layout=A5 2>&1 | FileCheck -check-prefixes=AS %s
2 ; RUN: llvm-dis < %t.bc | FileCheck -check-prefixes=DIS %s
3 ; RUN: opt < %s -S -data-layout=A5 2>&1 | FileCheck -check-prefixes=AS %s
4 ; RUN: opt < %t.bc -S | FileCheck -check-prefixes=DIS %s
8 ; DIS: target datalayout = "A5"
9 ; DIS: %tmp = alloca i32, align 4, addrspace(5)
10 %tmp = alloca i32, addrspace(5)
11 call void @llvm.dbg.value(
13 metadata !DILocalVariable(scope: !1),
14 metadata !DIExpression())
15 ; AS: llvm.dbg.value intrinsic requires a !dbg attachment
16 ; AS: warning: ignoring invalid debug info in <stdin>
20 declare void @llvm.dbg.value(metadata, metadata, metadata)
22 !llvm.module.flags = !{!0}
23 !0 = !{i32 2, !"Debug Info Version", i32 3}
24 !1 = distinct !DISubprogram(name: "foo")