Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks |
Douglas Gregor | b65f242 | 2008-12-01 19:48:06 +0000 | [diff] [blame] | 2 | |
3 | void tovoid(void*); | ||||
4 | |||||
5 | void tovoid_test(int (^f)(int, int)) { | ||||
6 | tovoid(f); | ||||
7 | } | ||||
Anders Carlsson | 5e57831 | 2009-05-26 02:03:20 +0000 | [diff] [blame] | 8 | |
9 | void reference_lvalue_test(int& (^f)()) { | ||||
10 | f() = 10; | ||||
11 | } |