diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-02 22:50:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-02 22:50:48 +0000 |
commit | 529bd02affa96a311dd9ab131f2ab4d833017fb7 (patch) | |
tree | b1428bd1b2357b8ce19a406e06d7d8fbd0cb3c3c /test/Sema/function.c | |
parent | f56dac9ae9b1f3061b24d2a8257327a97adc6bd7 (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.c | 5 |
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]); + |