blob: aa900998d2f30140e11c4d275271c389092cb812 [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-error "private" }
};
int f(...) { }
int main() {
A a;
f(a); // { dg-error "this context" }
sizeof(f(a)); // OK because unevaluated
}