diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-14 05:45:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-14 05:45:46 +0000 |
commit | 1adb88370beab45af2f065afe86b51ccd59ec50d (patch) | |
tree | cfab095fa4219ce348541935c64597a01b97625c /test | |
parent | aaffbf7c790a324ed114184db771aae2d2e9151c (diff) |
Fix ASTContext::typesAreCompatible when analyzing a function type with
proto and function type without proto. It would never call
'functionTypesAreCompatible' because they have different type classes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Sema/function.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c index 751339b79a..3f6ad96637 100644 --- a/test/Sema/function.c +++ b/test/Sema/function.c @@ -3,3 +3,7 @@ void f(double a[restrict][5]); // should promote to restrict ptr. void f(double (* restrict a)[5]); +void g(int (*)(const void **, const void **)); +void g(int (*compar)()) { +} + |