blob: b1fdb4eea364d8ffce9a5ac05b1cdbd8ac1489e8 [file] [log] [blame]
; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
define void @test(i8* %p) {
; CHECK: Access scope list contains invalid access scope
load i8, i8* %p, !llvm.access.group !1
; CHECK: Access scope list must consist of MDNodes
load i8, i8* %p, !llvm.access.group !2
; CHECK-NOT: Access scope
load i8, i8* %p, !llvm.access.group !3
load i8, i8* %p, !llvm.access.group !4
ret void
}
!0 = !{}
!1 = !{!0}
!2 = !{!"foo"}
!3 = distinct !{}
!4 = !{!3}