From 74b09c9bdf8a63935ef86e082516346be0d2391c Mon Sep 17 00:00:00 2001 From: paolo Date: Tue, 5 Nov 2013 15:22:36 +0000 Subject: 2013-11-05 Paolo Carlini PR c++/58724 * doc/extend.texi [visibility ("visibility_type")]: Add example about visibility attribute on namespace declaration. /cp 2013-11-05 Paolo Carlini PR c++/58724 * name-lookup.c (handle_namespace_attrs): Use get_attribute_name. /testsuite 2013-11-05 Paolo Carlini PR c++/58724 * g++.dg/cpp0x/gen-attrs-56.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204401 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/g++.dg/cpp0x/gen-attrs-56.C | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/gen-attrs-56.C (limited to 'gcc/testsuite/g++.dg') diff --git a/gcc/testsuite/g++.dg/cpp0x/gen-attrs-56.C b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-56.C new file mode 100644 index 00000000000..f331ed369ac --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/gen-attrs-56.C @@ -0,0 +1,5 @@ +// PR c++/58724 +// { dg-do compile { target c++11 } } + +namespace foo __attribute__((visibility("default"))) {} +namespace bar [[gnu::visibility("default")]] {} -- cgit v1.2.1