Eli Bendersky | aa3ffaf | 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 | 3049984 | 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 | 7a00b86 | 2006-07-11 20:29:21 +0000 | [diff] [blame] | 7 | |
Nick Lewycky | ec6f166 | 2008-03-16 07:55:46 +0000 | [diff] [blame] | 8 | %struct_4 = type { i32 } |
Chris Lattner | 7a00b86 | 2006-07-11 20:29:21 +0000 | [diff] [blame] | 9 | |
Nick Lewycky | ec6f166 | 2008-03-16 07:55:46 +0000 | [diff] [blame] | 10 | define void @test() { |
Chris Lattner | 7a00b86 | 2006-07-11 20:29:21 +0000 | [diff] [blame] | 11 | store %struct_4 zeroinitializer, %struct_4* null |
| 12 | unreachable |
| 13 | } |