commit | b65f2425e9847d30bae499323a2d5cc29808d0b5 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Mon Dec 01 19:48:06 2008 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Mon Dec 01 19:48:06 2008 +0000 |
tree | d52256115dbfee2a585fd505d9e0680eb9f77bd0 | |
parent | 19ac6ff24ed0434ad9e00db74926195fc4ba0f3e [diff] [blame] |
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 0000000..6393c1a --- /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); +}