Re: [PATCH] Add test for PR c++/53711
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
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
Applied, thanks. Jason
[PATCH] Add test for PR c++/53711
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