diff options
Diffstat (limited to 'clang/test/SemaObjCXX/blocks.mm')
-rw-r--r-- | clang/test/SemaObjCXX/blocks.mm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/test/SemaObjCXX/blocks.mm b/clang/test/SemaObjCXX/blocks.mm index 5f735241720..bdd5538e92b 100644 --- a/clang/test/SemaObjCXX/blocks.mm +++ b/clang/test/SemaObjCXX/blocks.mm @@ -76,27 +76,21 @@ namespace N1 { } // Make sure we successfully instantiate the copy constructor of a -// __block variable's type when the variable is captured by an escaping block. +// __block variable's type. namespace N2 { template <int n> struct A { A() {} A(const A &other) { int invalid[-n]; // expected-error 2 {{array with a negative size}} } - void m() {} }; - typedef void (^BlockFnTy)(); - void func(BlockFnTy); - void test1() { __block A<1> x; // expected-note {{requested here}} - func(^{ x.m(); }); } template <int n> void test2() { __block A<n> x; // expected-note {{requested here}} - func(^{ x.m(); }); } template void test2<2>(); } |