view test/Verifier/inalloca3.ll @ 85:5e5d649e25d2

Update LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Thu, 19 Feb 2015 15:19:25 +0900
parents 54457678186b
children
line wrap: on
line source

; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s


declare void @doit(i64* inalloca %a)

define void @a() {
entry:
  %a = alloca [2 x i32]
  %b = bitcast [2 x i32]* %a to i64*
  call void @doit(i64* inalloca %b)
; CHECK: inalloca argument for call has mismatched alloca
  ret void
}