summaryrefslogtreecommitdiff
path: root/llvm/test/Assembler/missing-tbaa.ll
blob: c0ea25f4f279d2e67e9b9d42feaa540a34009fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; Check that !tbaa upgrade doesn't crash on undefined metadata (it should give
; an error).

define void @foo() {
entry:
  store i8 undef, ptr undef,
; CHECK: :[[@LINE+1]]:10: error: use of undefined metadata '!1'
  !tbaa !1
  unreachable
}