summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-68754.C
blob: 72b8200587e5218621b6a669ddc2d2f73107be99 (plain)
1
2
3
4
5
6
7
// PR c++/68754
// { dg-do compile { target c++11 } }

struct base { };
struct derived : base {
  constexpr derived& operator=(derived const&) = default; // { dg-error "defaulted" "" { target { ! c++14 } } }
};