llvm/test/Assembler/alloca-invalid-type.ll
David Majnemer 5b71fffa58 AsmParser: Validate alloca's type
An alloca's type should be weird things like metadata.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228820 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-11 09:13:11 +00:00

10 lines
155 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; CHECK: pointer to this type is invalid
define void @test() {
entry:
alloca metadata !{null}
ret void
}