aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/predefined-function.c
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-01-09 22:43:08 +0000
committerSteve Naroff <snaroff@apple.com>2008-01-09 22:43:08 +0000
commit4a74678ed6c3dedac05d02b1ee341f1db869f049 (patch)
tree6aca62a35994e2d0df92f8b2fed3b42652a204c4 /test/Sema/predefined-function.c
parent58d1821279b0ffd002e675d211faca3b5de067e2 (diff)
Fix ASTContext::typesAreCompatible to allow for int/enum compatibility (C99 6.7.2.2p4).
Fix Sema::MergeFunctionDecl to allow for function type compatibility (by using the predicate on ASTContext). Function types don't have to be identical to be compatible... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/predefined-function.c')
-rw-r--r--test/Sema/predefined-function.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Sema/predefined-function.c b/test/Sema/predefined-function.c
index bca25fb995..80b5ab0c6b 100644
--- a/test/Sema/predefined-function.c
+++ b/test/Sema/predefined-function.c
@@ -1,5 +1,9 @@
// RUN: clang -fsyntax-only -verify -pedantic %s
-
+
+char *funk(int format);
+enum Test {A=-1};
+char *funk(enum Test x);
+
int foo();
int foo()
{