brintos

brintos / llvm-project-archived public Read only

0
0
Text · 236 B · 0fe21cc Raw
11 lines · plain
1; RUN: not llvm-as < %s 2>&1 | FileCheck %s2; Test the case of an invalid pointer type on a GEP3 4; CHECK: base of getelementptr must be a pointer5 6define ptr @foo(i32 %a) {7  %gep = getelementptr i32, i32 %a, i32 18  return ptr %gep9}10 11