You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
238 B

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