llvm-6502/test/CodeGen/CBackend/2007-01-15-NamedArrayType.ll
2009-09-09 00:09:15 +00:00

12 lines
302 B
LLVM

; PR918
; RUN: llc < %s -march=c | not grep {l_structtype_s l_fixarray_array3}
%structtype_s = type { i32 }
%fixarray_array3 = type [3 x %structtype_s]
define i32 @witness(%fixarray_array3* %p) {
%q = getelementptr %fixarray_array3* %p, i32 0, i32 0, i32 0
%v = load i32* %q
ret i32 %v
}