blob: c762b2a353096a4e67863b92b82ac948c2bf42ba [file] [log] [blame]
Dan Gohman8055f772008-05-15 19:50:34 +00001; RUN: llvm-as < %s
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Dan Gohman8055f772008-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.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Nick Lewycky490e7932008-03-16 07:55:46 +00006define void @test({i32, i32*} * %X) {
7 getelementptr {i32, i32*} * %X, i32 0, i32 1, i32 0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008 ret void
9}