aboutsummaryrefslogtreecommitdiffstats
path: root/test/Verifier/ident-meta2.ll
blob: 1c11e1bcba2a39495f0fe8002bf9e17f7abb27ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
; Verify that llvm.ident is properly structured.
; llvm.ident takes a list of metadata entries.
; Each metadata entry can contain one string only.

!llvm.ident = !{!0, !1, !2, !3}
!0 = !{!"str1"}
!1 = !{!"str2"}
!2 = !{!"str3"}
!3 = !{i32 1}
; CHECK: assembly parsed, but does not verify as correct!
; CHECK-NEXT: invalid value for llvm.ident metadata entry operand(the operand should be a string)
; CHECK-NEXT: i32 1