Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/Assembler/getelementptr_invalid_ptr.ll @ 107:a03ddd01be7e
resolve warnings
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 31 Jan 2016 17:34:49 +0900 |
parents | afa8332a0e37 |
children |
line wrap: on
line source
; 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 }