diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-05-27 18:47:56 +0000 |
commit | 5e20cdd81c44a443562a09007668ffdf76c455af (patch) | |
tree | dbbd4047878da71c1a706e26ce05b4e7791b14cc /test/Sema/function.c | |
parent | d5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3 (diff) |
Notes
Diffstat (limited to 'test/Sema/function.c')
-rw-r--r-- | test/Sema/function.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c index 81d303c27f628..26be61416b3cb 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'}} +{ +} |