summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/blocks.cpp
blob: 9d789bb3252ad6ce0527322881f56186c2937feb (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: clang-cc -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;
}
OpenPOWER on IntegriCloud