blob: 96d978d1dc0cb967f6c6f8504d0e85f8dae924f3 [file] [log] [blame]
Chandler Carruth49589f02012-07-02 18:37:59 +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}