1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00
llvm-mirror/test/Verifier/opaque-ptr-invalid.ll
Zequan Wu 2685e7847d [OpaquePtr] Verify Opaque pointer in function parameter
Verifying opaque pointer as function parameter when using with `byval`, `byref`,
`inalloca`, `preallocated`.

Differential Revision: https://reviews.llvm.org/D104309
2021-06-15 14:57:48 -07:00

8 lines
193 B
LLVM

; RUN: not opt -verify < %s 2>&1 | FileCheck %s
; CHECK: Attribute 'inalloca' does not support unsized types!
; CHECK-NEXT: void (ptr)* @f
define void @f(ptr inalloca(token)) {
ret void
}