From 5e20cdd81c44a443562a09007668ffdf76c455af Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 27 May 2015 18:47:56 +0000 Subject: Vendor import of clang trunk r238337: https://llvm.org/svn/llvm-project/cfe/trunk@238337 --- test/Sema/function.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/Sema/function.c') diff --git a/test/Sema/function.c b/test/Sema/function.c index 81d303c27f62..26be61416b3c 100644 --- a/test/Sema/function.c +++ b/test/Sema/function.c @@ -113,3 +113,9 @@ void t22(int *ptr, int (*array)[3]) { decays(array); no_decay(array); } + +void const Bar (void); // ok on decl +// PR 20146 +void const Bar (void) // expected-warning {{function cannot return qualified void type 'const void'}} +{ +} -- cgit v1.2.3