| 1 |
// Mark test as unsupported on PS5 due to PS5 doesn't support function sanitizer. |
| 2 |
// UNSUPPORTED: target=x86_64-sie-ps5 |
| 3 |
|
| 4 |
// RUN: %clang_cc1 -fblocks -fsanitize=function -emit-llvm %s -o %t |
| 5 |
|
| 6 |
void g(void (^)()); |
| 7 |
void f() { |
| 8 |
__block int a = 0; |
| 9 |
g(^() { |
| 10 |
a++; |
| 11 |
}); |
| 12 |
} |