aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Verifier/token1-with-asserts.ll
blob: 9a6f3744cfcde34ad63056fe3056c381b3464333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; REQUIRES: asserts
; RUN: not --crash llvm-as %s -o /dev/null 2>&1 | FileCheck %s

define void @f(token %A, token %B) {
entry:
  br label %bb

bb:
  %phi = phi token [ %A, %bb ], [ %B, %entry]
; CHECK: PHI nodes cannot have token type!
  br label %bb
}