aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/2007-01-15-NamedArrayType.ll
blob: a9eeff3bffda005987416b6f3b3ffa32c4ca3000 (plain)
1
2
3
4
5
6
7
8
9
10
11
; PR918
; RUN: llvm-as < %s | llc -march=c | not grep 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
}