12 lines
184 B
C++
12 lines
184 B
C++
// 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;
|
|
}
|