Dan Gohman | e6b1ee6 | 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. |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 5 | |
Nick Lewycky | 490e793 | 2008-03-16 07:55:46 +0000 | [diff] [blame] | 6 | %struct_4 = type { i32 } |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 7 | |
Nick Lewycky | 490e793 | 2008-03-16 07:55:46 +0000 | [diff] [blame] | 8 | define void @test() { |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 9 | store %struct_4 zeroinitializer, %struct_4* null |
| 10 | unreachable |
| 11 | } |