// RUN: cir-opt %s -verify-diagnostics -split-input-file module { // Should not copy types with no data layout (unkonwn byte size). cir.func @invalid_copy(%arg0 : !cir.ptr, %arg1 : !cir.ptr) { // expected-error@+1 {{missing data layout for pointee type}} cir.copy %arg0 to %arg1 : !cir.ptr cir.return } } // ----- module { // skip_tail_padding is only valid for record pointee types. cir.func @invalid_skip_tail_padding(%arg0 : !cir.ptr>, %arg1 : !cir.ptr>) { // expected-error@+1 {{skip_tail_padding is only valid for record pointee types}} cir.copy %arg0 to %arg1 skip_tail_padding : !cir.ptr> cir.return } }