blob: 0e04dbfb8d7722032df0538dac5f05eb4b7319ac [file] [log] [blame]
// PR c++/49102
// PR c++/50034
// { dg-do compile { target c++11 } }
struct A {
A() = default;
private:
A(A const&) = default; // { dg-message "private" }
};
int f(...) { return 0; }
int main() {
A a;
f(a); // { dg-error "this context" }
sizeof(f(a)); // OK because unevaluated
}