]> granicus.if.org Git - clang/commitdiff
Test blocks in C++ mode
authorDouglas Gregor <dgregor@apple.com>
Mon, 1 Dec 2008 19:48:06 +0000 (19:48 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 1 Dec 2008 19:48:06 +0000 (19:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60367 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/blocks.cpp [new file with mode: 0644]

diff --git a/test/SemaCXX/blocks.cpp b/test/SemaCXX/blocks.cpp
new file mode 100644 (file)
index 0000000..6393c1a
--- /dev/null
@@ -0,0 +1,7 @@
+// RUN clang -fsyntax-only -verify %s
+
+void tovoid(void*);
+
+void tovoid_test(int (^f)(int, int)) {
+  tovoid(f);
+}