1 | // RUN: %clang_cc1 -fblocks -fsanitize=function -emit-llvm %s -o %t |
---|---|
2 | |
3 | void g(void (^)()); |
4 | void f() { |
5 | __block int a = 0; |
6 | g(^() { |
7 | a++; |
8 | }); |
9 | } |
10 |
1 | // RUN: %clang_cc1 -fblocks -fsanitize=function -emit-llvm %s -o %t |
---|---|
2 | |
3 | void g(void (^)()); |
4 | void f() { |
5 | __block int a = 0; |
6 | g(^() { |
7 | a++; |
8 | }); |
9 | } |
10 |