]> granicus.if.org Git - clang/commitdiff
testcase from neil
authorChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2007 05:32:22 +0000 (05:32 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Jul 2007 05:32:22 +0000 (05:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40173 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/arg-invalid.c [new file with mode: 0644]

diff --git a/test/Sema/arg-invalid.c b/test/Sema/arg-invalid.c
new file mode 100644 (file)
index 0000000..1eae26c
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: clang %s -parse-ast-check
+
+void bar (void *); 
+void f11 (z)       // expected-error {{may not have 'void' type}}
+void z; 
+{ bar (&z); }