diff options
Diffstat (limited to 'test/SemaCXX/blocks.cpp')
-rw-r--r-- | test/SemaCXX/blocks.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaCXX/blocks.cpp b/test/SemaCXX/blocks.cpp new file mode 100644 index 0000000..9d789bb --- /dev/null +++ b/test/SemaCXX/blocks.cpp @@ -0,0 +1,11 @@ +// 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; +} |