Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/Wunused-parm.C

raw
1 // PR c++/57211
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wunused-parameter" }
4
5 template <class T> T&& move(T&);
6
7 struct A
8 {
9 struct B
10 {
11 B& operator=(B&&);
12 };
13
14 B f;
15
16 A& operator=(A&& p) = default;
17 };
18
19 int main()
20 {
21 A a;
22 A b;
23 b = move(a);
24 }