summaryrefslogtreecommitdiff
path: root/test/Verifier/jumptable.ll
blob: 5f4cd3fe4f45876a5f7cdcac2cc69c1bc0636102 (plain)
1
2
3
4
5
6
7
8
9
; RUN: not llc <%s 2>&1 | FileCheck %s

define i32 @f() jumptable {
  ret i32 0
}

; CHECK: Attribute 'jumptable' requires 'unnamed_addr'
; CHECK: i32 ()* @f
; CHECK: LLVM ERROR: Broken function found, compilation aborted!