Dan Gohman | e4977cf | 2008-05-23 01:55:30 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s |& not grep {Instruction operands must be first-class} |
| 2 | |
| 3 | ; This previously was for PR826, but structs are now first-class so |
| 4 | ; the following is now valid. |
Chris Lattner | f7cb674 | 2006-07-11 20:29:21 +0000 | [diff] [blame] | 5 | |
Nick Lewycky | 3f63785 | 2008-03-16 07:55:46 +0000 | [diff] [blame] | 6 | %struct_4 = type { i32 } |
Chris Lattner | f7cb674 | 2006-07-11 20:29:21 +0000 | [diff] [blame] | 7 | |
Nick Lewycky | 3f63785 | 2008-03-16 07:55:46 +0000 | [diff] [blame] | 8 | define void @test() { |
Chris Lattner | f7cb674 | 2006-07-11 20:29:21 +0000 | [diff] [blame] | 9 | store %struct_4 zeroinitializer, %struct_4* null |
| 10 | unreachable |
| 11 | } |