diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGenObjC/blocks-unsupported.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/CodeGenObjC/blocks-unsupported.m b/clang/test/CodeGenObjC/blocks-unsupported.m index b9ec336e2a7..8e43d707ed6 100644 --- a/clang/test/CodeGenObjC/blocks-unsupported.m +++ b/clang/test/CodeGenObjC/blocks-unsupported.m @@ -6,29 +6,29 @@ void t1() { __block int a; - ^{ a = 10; }(); // expected-error {{cannot compile this block expression with __block variables yet}} + ^{ a = 10; }(); // expected-error {{cannot compile this __block variable in block literal yet}} void (^block)(void); ^{ (void)block; }(); // expected-error {{}} struct Foo *__attribute__ ((NSObject)) foo; - ^{ (void)foo; }(); // expected-error {{cannot compile this block expression with __attribute__((NSObject)) variable yet}} + ^{ (void)foo; }(); // expected-error {{cannot compile this __attribute__((NSObject)) variable in block literal yet}} typedef struct CGColor * __attribute__ ((NSObject)) CGColorRef; CGColorRef color; - ^{ (void)color; }(); // expected-error {{cannot compile this block expression with __attribute__((NSObject)) variable yet}} + ^{ (void)color; }(); // expected-error {{cannot compile this __attribute__((NSObject)) variable in block literal yet}} id a1; - ^{ (void)a1; }(); // expected-error {{cannot compile this block expression with Objective-C variable yet}} + ^{ (void)a1; }(); // expected-error {{cannot compile this Objective-C variable in block literal yet}} Foo *a2; - ^{ (void)a2; }(); // expected-error {{cannot compile this block expression with Objective-C variable yet}} + ^{ (void)a2; }(); // expected-error {{cannot compile this Objective-C variable in block literal yet}} id<P> a3; - ^{ (void)a3; }(); // expected-error {{cannot compile this block expression with Objective-C variable yet}} + ^{ (void)a3; }(); // expected-error {{cannot compile this Objective-C variable in block literal yet}} Foo<P> *a4; - ^{ (void)a4; }(); // expected-error {{cannot compile this block expression with Objective-C variable yet}} + ^{ (void)a4; }(); // expected-error {{cannot compile this Objective-C variable in block literal yet}} } |