aboutsummaryrefslogtreecommitdiffstats
path: root/test/Verifier/ident-meta1.ll
blob: 3202fbd3e8f79d2bc38fee35f2c2e4b7084f5d1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; 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 have only one string.

!llvm.ident = !{!0, !1}
!0 = !{!"version string"}
!1 = !{!"string1", !"string2"}
; CHECK: assembly parsed, but does not verify as correct!
; CHECK-NEXT: incorrect number of operands in llvm.ident metadata
; CHECK-NEXT: !1