summaryrefslogtreecommitdiff
path: root/llvm/test/Assembler/phi-first-class-type.ll
blob: b14b8c4d3c67b8d348c26afb5f20f5b801023e17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: not llvm-as < %s 2>&1 | FileCheck %s

; CHECK: error: phi node must have first class type

define void @test() {
entry:
  ret void

bb:
  %phi = phi void ()
  ret void
}