aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/function.c
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-01-29 00:15:50 +0000
committerSteve Naroff <snaroff@apple.com>2008-01-29 00:15:50 +0000
commitba03eda1599dd89da935a2b46da10659afe46add (patch)
tree7f895c0dabd30fb59e5816fd064b8b3e1b176849 /test/Sema/function.c
parent403c181133bb3774b39f10b566433fd8bbe5ec54 (diff)
Fix bz1950. ASTContext::functionTypesAreCompatible() needs to operate on the unqualified parameter types (per C99 6.7.5.3p15).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/function.c')
-rw-r--r--test/Sema/function.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c
index 3f6ad96637..34e523586c 100644
--- a/test/Sema/function.c
+++ b/test/Sema/function.c
@@ -3,6 +3,9 @@
void f(double a[restrict][5]); // should promote to restrict ptr.
void f(double (* restrict a)[5]);
+int foo (__const char *__path);
+int foo(__const char *__restrict __file);
+
void g(int (*)(const void **, const void **));
void g(int (*compar)()) {
}