testcase for PR918

llvm-svn: 33253
This commit is contained in:
Chris Lattner 2007-01-16 07:21:28 +00:00
parent 06f52d3e1e
commit a1adc3b364

View File

@ -0,0 +1,11 @@
; RUN: llvm-as < %s | llc -march=c | not grep fixarray_array3
; PR918
%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
}