view gcc/testsuite/g++.dg/cpp0x/defaulted21.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// 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();
}