summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/defaulted21.C
blob: 312194d98767a2f54252976b970c2383b6da2528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR c++/46736
// { dg-do compile { target c++11 } }

struct U {
  U();
private:
  U(U const&);			// { dg-message "private" }
};

struct X {
  U const u;
  X();
  X(X&&);
};

X::X(X&&)=default;		// { dg-message "implicitly deleted" }
// { dg-prune-output "within this context" }

X f() {
  return X();
}