diff options
Diffstat (limited to 'clang/test/Sema/2009-07-17-VoidParameter.c')
-rw-r--r-- | clang/test/Sema/2009-07-17-VoidParameter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/2009-07-17-VoidParameter.c b/clang/test/Sema/2009-07-17-VoidParameter.c new file mode 100644 index 0000000..68d1b1e --- /dev/null +++ b/clang/test/Sema/2009-07-17-VoidParameter.c @@ -0,0 +1,4 @@ +// RUN: not %clang_cc1 -emit-llvm %s -o - +// PR4214 +typedef void vt; +void (*func_ptr)(vt my_vt); // expected-error {argument may not have 'void' type} |