1 // Implicit copy construct which is unused
8 // Explicit copy constructor which is used
21 RC1
* r1p
= new RC1(*r1
); // expected-error {{Invalid use of compiler-provided copy constructor on refcounted type}} expected-note {{The default copy constructor also copies the default mRefCnt property, leading to reference count imbalance issues. Please provide your own copy constructor which only copies the fields which need to be copied}}
24 RC2
* r2p
= new RC2(*r2
);