aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjCXX/crash-function-type.mm
blob: 53acc58dfc44d8b964a01ae23bb3f793cb78add7 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -fblocks -fsanitize=function -emit-llvm %s -o %t

void g(void (^)());
void f() {
  __block int a = 0;
  g(^() {
    a++;
  });
}