re PR c++/53711 (Wunused-function should warn for functions in the unnamed namespace)

PR c++/53711
	* d++.dg/warn/anonymous-namespace-6.C: New test.

From-SVN: r208569
This commit is contained in:
Jason Merrill 2014-03-14 11:20:28 -04:00
parent 25e57622a5
commit 54ce77893d
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// PR c++/53711
// { dg-options -Wall }
namespace {
void f () // { dg-warning "not used" }
{
}
}