Teach DataLayout that zero-byte pointer sizes don't make sense.
[oota-llvm.git] / test / Assembler / invalid-gep-mismatched-explicit-type.ll
1 ; RUN: not llvm-as < %s 2>&1 | FileCheck %s
2 ; CHECK: <stdin>:4:22: error: explicit pointee type doesn't match operand's pointee type
3 define void @test(i32* %t) {
4   %x = getelementptr i16, i32* %t, i32 0
5   ret void
6 }