freebsd-dev/test/SemaCXX/blocks.cpp
2009-06-02 17:58:47 +00:00

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;
}