mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
d9778583bf
llvm-svn: 231722
11 lines
238 B
LLVM
11 lines
238 B
LLVM
; 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
|
|
}
|
|
|