repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wunused-parm.C
blob
232e484356e22ccc75f4238bcd566f737522a114
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
}