1 ; RUN: not opt -verify < %s 2>&1 | FileCheck %s
5 define void @f_0(%X* %ptr) {
8 ; CHECK: loading unsized types is not allowed
9 ; CHECK-NEXT: %t = load %X, %X* %ptr
12 define void @f_1(%X %val, %X* %ptr) {
13 store %X %val, %X* %ptr
15 ; CHECK: storing unsized types is not allowed
16 ; CHECK-NEXT: store %X %val, %X* %ptr
22 ; CHECK: Cannot allocate unsized type
23 ; CHECK-NEXT: %t = alloca %X