1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Assembler/getelementptr_invalid_ptr.ll
2015-03-03 05:39:27 +00:00

11 lines
224 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; Test the case of an invalid pointer type on a GEP
; CHECK: pointer type is not valid
define i32* @foo(i32 %a) {
%gep = getelementptr i32, i32 %a, i32 1
return i32* %gep
}