2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -fsyntax-only -verify %s -fblocks
|
2008-12-02 03:48:06 +08:00
|
|
|
|
|
|
|
void tovoid(void*);
|
|
|
|
|
|
|
|
void tovoid_test(int (^f)(int, int)) {
|
|
|
|
tovoid(f);
|
|
|
|
}
|
2009-05-26 10:03:20 +08:00
|
|
|
|
|
|
|
void reference_lvalue_test(int& (^f)()) {
|
|
|
|
f() = 10;
|
|
|
|
}
|