blob: c762b2a353096a4e67863b92b82ac948c2bf42ba [file] [log] [blame]
Dan Gohman041e2eb2008-05-15 19:50:34 +00001; RUN: llvm-as < %s
Tanya Lattner2393a242004-11-06 23:08:26 +00002
Dan Gohman041e2eb2008-05-15 19:50:34 +00003; This testcase was previously considered invalid for indexing into a pointer
4; that is contained WITHIN a structure, but this is now valid.
Chris Lattner5051e9c2002-11-06 00:52:21 +00005
Nick Lewycky3f637852008-03-16 07:55:46 +00006define void @test({i32, i32*} * %X) {
7 getelementptr {i32, i32*} * %X, i32 0, i32 1, i32 0
Chris Lattner5051e9c2002-11-06 00:52:21 +00008 ret void
9}