From: Douglas Gregor Date: Mon, 1 Dec 2008 19:48:06 +0000 (+0000) Subject: Test blocks in C++ mode X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b65f2425e9847d30bae499323a2d5cc29808d0b5;p=clang Test blocks in C++ mode git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60367 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/blocks.cpp b/test/SemaCXX/blocks.cpp new file mode 100644 index 0000000000..6393c1a631 --- /dev/null +++ b/test/SemaCXX/blocks.cpp @@ -0,0 +1,7 @@ +// RUN clang -fsyntax-only -verify %s + +void tovoid(void*); + +void tovoid_test(int (^f)(int, int)) { + tovoid(f); +}