llvm-project/llvm/test/Assembler/invalid-opaque-ptr.ll
Nikita Popov edb2fc6dab [llvm] Remove explicit -opaque-pointers flag from tests (NFC)
Opaque pointers mode is enabled by default, no need to explicitly
enable it.
2023-07-12 14:35:55 +02:00

8 lines
176 B
LLVM

; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
; CHECK: ptr* is invalid - use ptr instead
define void @f(ptr %a) {
%b = bitcast ptr %a to ptr*
ret void
}