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