commit | c08564a9ea8c3ecffe3a7f08183d5fd27db7c3e6 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Jan 02 22:50:48 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Jan 02 22:50:48 2008 +0000 |
tree | b1428bd1b2357b8ce19a406e06d7d8fbd0cb3c3c | |
parent | 11ed4ca362958162d11612c9318cde7760cb7afe [diff] [blame] |
When promoting array to pointer for argument, don't lose type qualifiers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45510 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/function.c b/test/Sema/function.c new file mode 100644 index 0000000..751339b --- /dev/null +++ b/test/Sema/function.c
@@ -0,0 +1,5 @@ +// RUN: clang %s -fsyntax-only +// PR1892 +void f(double a[restrict][5]); // should promote to restrict ptr. +void f(double (* restrict a)[5]); +