Teach DataLayout that ABI alignments for non-aggregate types must be non-zero.
[oota-llvm.git] / test / Assembler / mdnamespace.ll
1 ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2 ; RUN: verify-uselistorder %s
3
4 ; CHECK: !named = !{!0, !1, !2, !3, !4, !4}
5 !named = !{!0, !1, !2, !3, !4, !5}
6
7 !0 = distinct !{}
8 !1 = distinct !{}
9 !2 = !MDFile(filename: "path/to/file", directory: "/path/to/dir")
10
11 ; CHECK: !3 = !MDNamespace(name: "Namespace", scope: !0, file: !2, line: 7)
12 !3 = !MDNamespace(name: "Namespace", scope: !0, file: !2, line: 7)
13
14 ; CHECK: !4 = !MDNamespace(scope: !0)
15 !4 = !MDNamespace(name: "", scope: !0, file: null, line: 0)
16 !5 = !MDNamespace(scope: !0)