From 461a67fa15370a9ec88f8f8a240bf7c123bb2029 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 18 Dec 2017 20:11:37 +0000 Subject: Vendor import of clang trunk r321017: https://llvm.org/svn/llvm-project/cfe/trunk@321017 --- test/SemaCXX/attr-require-constant-initialization.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/SemaCXX/attr-require-constant-initialization.cpp') diff --git a/test/SemaCXX/attr-require-constant-initialization.cpp b/test/SemaCXX/attr-require-constant-initialization.cpp index 0df9f2e88029..2dd72ea6dba9 100644 --- a/test/SemaCXX/attr-require-constant-initialization.cpp +++ b/test/SemaCXX/attr-require-constant-initialization.cpp @@ -56,12 +56,12 @@ struct StoresNonLit { #if defined(TEST_ONE) // Test semantics of attribute // Test diagnostics when attribute is applied to non-static declarations. -void test_func_local(ATTR int param) { // expected-error {{only applies to variables with static or thread}} - ATTR int x = 42; // expected-error {{only applies to variables with static or thread}} +void test_func_local(ATTR int param) { // expected-error {{only applies to global variables}} + ATTR int x = 42; // expected-error {{only applies to}} ATTR extern int y; } -struct ATTR class_mem { // expected-error {{only applies to variables with static or thread}} - ATTR int x; // expected-error {{only applies to variables with static or thread}} +struct ATTR class_mem { // expected-error {{only applies to}} + ATTR int x; // expected-error {{only applies to}} }; // [basic.start.static]p2.1 -- cgit v1.2.3