From: Chris Lattner Date: Tue, 16 Jan 2007 07:21:28 +0000 (+0000) Subject: testcase for PR918 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=efe0213626b84d3686e24f7091f054514797e82e;p=oota-llvm.git testcase for PR918 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33253 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/CBackend/2007-01-15-NamedArrayType.ll b/test/CodeGen/CBackend/2007-01-15-NamedArrayType.ll new file mode 100644 index 00000000000..e083e5cc115 --- /dev/null +++ b/test/CodeGen/CBackend/2007-01-15-NamedArrayType.ll @@ -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 +}