* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted37.C
blob1926f2eb4cc403eec67c80b8f237c7bfefbc0de4
1 // DR 1402
2 // { dg-do compile { target c++11 } }
4 struct A
6   A& operator=(A&&);
7 };
9 struct B: virtual A { B& operator=(B&&) = default; }; // { dg-warning "virtual base" }
10 struct C: virtual A { };                              // { dg-warning "virtual base" }
12 int main()
14   B b1, b2;
15   b2 = static_cast<B&&>(b1);
17   C c1, c2;
18   c2 = static_cast<C&&>(c1);