aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/function.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-02 22:50:48 +0000
committerChris Lattner <sabre@nondot.org>2008-01-02 22:50:48 +0000
commit529bd02affa96a311dd9ab131f2ab4d833017fb7 (patch)
treeb1428bd1b2357b8ce19a406e06d7d8fbd0cb3c3c /test/Sema/function.c
parentf56dac9ae9b1f3061b24d2a8257327a97adc6bd7 (diff)
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
Diffstat (limited to 'test/Sema/function.c')
-rw-r--r--test/Sema/function.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c
new file mode 100644
index 0000000000..751339b79a
--- /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]);
+