]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/53711 (Wunused-function should warn for functions in the unnamed namespace)
authorJason Merrill <jason@gcc.gnu.org>
Fri, 14 Mar 2014 15:20:28 +0000 (11:20 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 14 Mar 2014 15:20:28 +0000 (11:20 -0400)
PR c++/53711
* d++.dg/warn/anonymous-namespace-6.C: New test.

From-SVN: r208569

gcc/testsuite/g++.dg/warn/anonymous-namespace-6.C [new file with mode: 0644]

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 (file)
index 0000000..d238df3
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/53711
+// { dg-options -Wall }
+
+namespace {
+  void f () // { dg-warning "not used" }
+  {
+  }
+}