blob: 70aea8779bf1d89714a3c49fe46e47b63326c06d [file] [log] [blame]
Eli Benderskyc3d5c1c2013-04-08 18:33:51 +00001; RUN: llvm-as < %s 2>&1 | FileCheck %s
2
3; CHECK-NOT: Instruction operands must be first-class
Dan Gohmane4977cf2008-05-23 01:55:30 +00004
5; This previously was for PR826, but structs are now first-class so
6; the following is now valid.
Chris Lattnerf7cb6742006-07-11 20:29:21 +00007
Nick Lewycky3f637852008-03-16 07:55:46 +00008 %struct_4 = type { i32 }
Chris Lattnerf7cb6742006-07-11 20:29:21 +00009
Nick Lewycky3f637852008-03-16 07:55:46 +000010define void @test() {
Chris Lattnerf7cb6742006-07-11 20:29:21 +000011 store %struct_4 zeroinitializer, %struct_4* null
12 unreachable
13}