Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp0x/defaulted15.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
46 F(F&) = default; | 46 F(F&) = default; |
47 }; | 47 }; |
48 | 48 |
49 struct G: public F | 49 struct G: public F |
50 { | 50 { |
51 // Can't be const because F copy ctor isn't. | 51 G(const G&) = default; |
52 G(const G&) = default; // { dg-error "const" } | |
53 }; | 52 }; |
54 | 53 |
55 struct H | 54 struct H |
56 { | 55 { |
57 virtual ~H() = default; | 56 virtual ~H() = default; |