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