1 // { dg-do run { target c++11 } }
2 // PR78495 failed to propagate pass-by-value struct to base ctor.
10 Ptr(Ptr const&) = delete;
11 Ptr(Ptr&& other) : ptr (other.ptr) {moves++;}
19 struct Derived: Base {
26 Derived d(static_cast<Ptr&&>(ptr));
41 Base::Base(Ptr val_) : val(static_cast<Ptr&&>(val_)) {}