blob: ff12debc1bc39edcbb24986382542f49cdcc4d92 [file] [log] [blame]
Owen Anderson7325b912015-03-03 05:39:27 +00001; RUN: not llvm-as < %s 2>&1 | FileCheck %s
Owen Anderson91bdf072015-03-02 05:25:06 +00002; Test the case of an invalid pointer type on a GEP
3
4; CHECK: pointer type is not valid
5
6define i32* @foo(i32 %a) {
7 %gep = getelementptr i32, i32 %a, i32 1
8 return i32* %gep
9}
10