diff options
Diffstat (limited to 'test/Parser/objcxx11-attributes.mm')
-rw-r--r-- | test/Parser/objcxx11-attributes.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Parser/objcxx11-attributes.mm b/test/Parser/objcxx11-attributes.mm index c1d8c4132dc7..4bff2151a9c6 100644 --- a/test/Parser/objcxx11-attributes.mm +++ b/test/Parser/objcxx11-attributes.mm @@ -13,12 +13,12 @@ void f(X *noreturn) { int a[ [noreturn getSize] ]; // ... but is interpreted as an attribute where possible. - int b[ [noreturn] ]; // expected-error {{'noreturn' attribute only applies to functions and methods}} + int b[ [noreturn] ]; // expected-error {{'noreturn' attribute only applies to functions}} int c[ [noreturn getSize] + 1 ]; // An array size which is computed by a lambda is not OK. - int d[ [noreturn] { return 3; } () ]; // expected-error {{expected ']'}} expected-error {{'noreturn' attribute only applies}} + int d[ [noreturn] { return 3; } () ]; // expected-error {{expected ']'}} expected-error {{'noreturn' attribute only applies to functions}} // A message send which contains a message send is OK. [ [ X alloc ] init ]; |