From: Jason Merrill Date: Fri, 14 Mar 2014 15:20:28 +0000 (-0400) Subject: re PR c++/53711 (Wunused-function should warn for functions in the unnamed namespace) X-Git-Tag: releases/gcc-4.9.0~452 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54ce77893d804574d1386311a2ca44c61d5112e5;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/testsuite/g++.dg/warn/anonymous-namespace-6.C b/gcc/testsuite/g++.dg/warn/anonymous-namespace-6.C new file mode 100644 index 000000000000..d238df392c71 --- /dev/null +++ b/gcc/testsuite/g++.dg/warn/anonymous-namespace-6.C @@ -0,0 +1,8 @@ +// PR c++/53711 +// { dg-options -Wall } + +namespace { + void f () // { dg-warning "not used" } + { + } +}