summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Shevchenko <sav_ix@ukr.net>2018-03-08 22:15:13 +0200
committerAlexander Shevchenko <sav_ix@ukr.net>2018-03-09 05:23:26 +0000
commit4d204854745f6682d9937b8c13a429890e5bc738 (patch)
tree1eadadf071ca456dacea2a93d41be3ab077fe66b
parentc082d84d5d7fdbfb64de18f06a8ddbc77f2e6de4 (diff)
set attribute specifier before namespace name
That is correct C++. GCC (and apparently Clang) accept it after the name for compatibility with the old __attribute__ syntax. Change-Id: Ie7f3adaaed83198ca1c61bc0efdf51634e457b07 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--tests/auto/other/compiler/tst_compiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/other/compiler/tst_compiler.cpp b/tests/auto/other/compiler/tst_compiler.cpp
index 0410856790..b2b45bb237 100644
--- a/tests/auto/other/compiler/tst_compiler.cpp
+++ b/tests/auto/other/compiler/tst_compiler.cpp
@@ -693,7 +693,7 @@ QT_WARNING_DISABLE_GCC("-Wunused-local-typedefs")
[[noreturn]] void attribute_f1();
void attribute_f2 [[noreturn]] ();
# if (defined(__cpp_namespace_attributes) && __cpp_namespace_attributes >= 201411) && __has_cpp_attribute(deprecated)
-namespace NS [[deprecated]] { }
+namespace [[deprecated]] NS { }
# endif
#endif