brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 00f30e6 Raw
48 lines · plain
1; RUN: not llvm-as -disable-output < %s -o /dev/null 2>&1 | FileCheck %s2 3; CHECK: associated value must be pointer typed4; CHECK-NEXT: ptr addrspace(1) @associated.int5; CHECK-NEXT: !0 = !{i32 1}6@associated.int = external addrspace(1) constant [8 x i8], !associated !07 8; CHECK: associated value must be pointer typed9; CHECK-NEXT: ptr addrspace(1) @associated.float10; CHECK-NEXT: !1 = !{float 1.000000e+00}11@associated.float = external addrspace(1) constant [8 x i8], !associated !112 13; CHECK: associated metadata must have one operand14; CHECK-NEXT: ptr addrspace(1) @associated.too.many.ops15; CHECK-NEXT: !2 = !{ptr @gv.decl0, ptr @gv.decl1}16@associated.too.many.ops = external addrspace(1) constant [8 x i8], !associated !217 18; CHECK: associated metadata must have one operand19; CHECK-NEXT: ptr addrspace(1) @associated.empty20; CHECK-NEXT: !3 = !{}21@associated.empty = external addrspace(1) constant [8 x i8], !associated !322 23; CHECK: associated metadata must have a global value24; CHECK-NEXT: ptr addrspace(1) @associated.null.metadata25; CHECK-NEXT: !4 = !{null}26@associated.null.metadata = external addrspace(1) constant [8 x i8], !associated !427 28; CHECK: global values should not associate to themselves29; CHECK-NEXT: ptr @associated.self30; CHECK-NEXT: !5 = !{ptr @associated.self}31@associated.self = external constant [8 x i8], !associated !532 33; CHECK: associated metadata must be ValueAsMetadata34; CHECK-NEXT: ptr @associated.string35; CHECK-NEXT: !6 = !{!"string"}36@associated.string = external constant [8 x i8], !associated !637 38@gv.decl0 = external constant [8 x i8]39@gv.decl1 = external constant [8 x i8]40 41!0 = !{i32 1}42!1 = !{float 1.000000e+00}43!2 = !{ptr @gv.decl0, ptr @gv.decl1}44!3 = !{}45!4 = !{null}46!5 = !{ptr @associated.self}47!6 = !{!"string"}48