aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/blocks.cpp
blob: 94295437e16142d4fa43ac65c4783f20949f67c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks

void tovoid(void*);

void tovoid_test(int (^f)(int, int)) {
  tovoid(f);
}

void reference_lvalue_test(int& (^f)()) {
  f() = 10;
}