blob: 65b229d1ca9df1550b26717a066f2d7ca501e317 [file] [log] [blame]
Chandler Carruth1de43ed2012-07-02 19:09:46 +00001; RUN: llvm-as < %s 2>&1 | not grep "Instruction operands must be first-class"
Dan Gohmane4977cf2008-05-23 01:55:30 +00002
3; This previously was for PR826, but structs are now first-class so
4; the following is now valid.
Chris Lattnerf7cb6742006-07-11 20:29:21 +00005
Nick Lewycky3f637852008-03-16 07:55:46 +00006 %struct_4 = type { i32 }
Chris Lattnerf7cb6742006-07-11 20:29:21 +00007
Nick Lewycky3f637852008-03-16 07:55:46 +00008define void @test() {
Chris Lattnerf7cb6742006-07-11 20:29:21 +00009 store %struct_4 zeroinitializer, %struct_4* null
10 unreachable
11}