freebsd-nq/test/SemaCXX/blocks.cpp
2010-01-01 10:34:51 +00:00

12 lines
186 B
C++

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