aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-12-01 19:48:06 +0000
committerDouglas Gregor <dgregor@apple.com>2008-12-01 19:48:06 +0000
commitb65f2425e9847d30bae499323a2d5cc29808d0b5 (patch)
treed52256115dbfee2a585fd505d9e0680eb9f77bd0
parent19ac6ff24ed0434ad9e00db74926195fc4ba0f3e (diff)
Test blocks in C++ mode
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60367 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/SemaCXX/blocks.cpp7
1 files changed, 7 insertions, 0 deletions
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);
+}