mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
25dc6c8a08
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231056 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
224 B
LLVM
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
|
|
}
|
|
|