Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/defaulted37.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
// DR 1402 // { dg-do compile { target c++11 } } struct A { A& operator=(A&&); }; struct B: virtual A { B& operator=(B&&) = default; }; // { dg-warning "virtual base" } struct C: virtual A { }; // { dg-warning "virtual base" } int main() { B b1, b2; b2 = static_cast<B&&>(b1); C c1, c2; c2 = static_cast<C&&>(c1); }