// { dg-do compile { target c++23 } } #include std::shared_ptr sp; auto iop = std::inout_ptr(sp); // { dg-error "here" } std::shared_ptr sp2; std::default_delete d; auto iop2 = std::inout_ptr(sp2, d); // { dg-error "here" } // { dg-error "can not be used" "" { target *-*-* } 0 }