diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-21 05:32:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-21 05:32:22 +0000 |
commit | 4fc37c515826dc506631178e58f1d0ae495ff100 (patch) | |
tree | 15f10387f54521b0a65328f640f40bb0161070fa | |
parent | 78c75fb3d275079c5fab30eeb33077958f2b0265 (diff) |
testcase from neil
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40173 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Sema/arg-invalid.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/arg-invalid.c b/test/Sema/arg-invalid.c new file mode 100644 index 0000000000..1eae26c5ae --- /dev/null +++ b/test/Sema/arg-invalid.c @@ -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); } |