Re: [PATCH] Add test for PR c++/53711

2014-03-23 Thread Marc Glisse

On Sun, 23 Mar 2014, Patrick Palka wrote:


On Fri, Mar 14, 2014 at 11:20 AM, Jason Merrill  wrote:

Applied, thanks.


Thanks!  The commit seems to be missing the corresponding ChangeLog
entry though.


ChangeLog is kind of optional in the testsuite. Please keep providing 
entries, but don't be surprised when some go missing.


--
Marc Glisse


Re: [PATCH] Add test for PR c++/53711

2014-03-23 Thread Patrick Palka
On Fri, Mar 14, 2014 at 11:20 AM, Jason Merrill  wrote:
> Applied, thanks.

Thanks!  The commit seems to be missing the corresponding ChangeLog
entry though.


Re: [PATCH] Add test for PR c++/53711

2014-03-14 Thread Jason Merrill

Applied, thanks.

Jason


[PATCH] Add test for PR c++/53711

2014-03-13 Thread Patrick Palka
This patch adds a test case for PR c++/53711 which seems to have been
resolved by r199906.

PR c++/53711
* d++.dg/warn/anonymous-namespace-6.C: New test.
---
 gcc/testsuite/g++.dg/warn/anonymous-namespace-6.C | 8 
 1 file changed, 8 insertions(+)
 create mode 100644 gcc/testsuite/g++.dg/warn/anonymous-namespace-6.C

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 000..d238df3
--- /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" }
+  {
+  }
+}
-- 
1.9.0