summaryrefslogtreecommitdiff
path: root/test/SemaCXX/attr-weak.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/attr-weak.cpp')
-rw-r--r--test/SemaCXX/attr-weak.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/attr-weak.cpp b/test/SemaCXX/attr-weak.cpp
index 8ba3a954282d..51deb664ce6e 100644
--- a/test/SemaCXX/attr-weak.cpp
+++ b/test/SemaCXX/attr-weak.cpp
@@ -3,7 +3,7 @@
static int test0 __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}}
static void test1() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}}
-namespace test2 __attribute__((weak)) { // expected-warning {{'weak' attribute only applies to variables, functions and classes}}
+namespace test2 __attribute__((weak)) { // expected-warning {{'weak' attribute only applies to variables, functions, and classes}}
}
namespace {