summaryrefslogtreecommitdiffstats
path: root/clang/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
commitc6edcbdb5d849db2dd8ef4122873006b51726b1a (patch)
tree9a9f8771440939ad697abf93d9372c65a88fa521 /clang/test/Sema/predefined-function.c
parent436db42a3c2229a2ffb2994aa6776402a4b893bb (diff)
downloadbcm5719-llvm-c6edcbdb5d849db2dd8ef4122873006b51726b1a.tar.gz
bcm5719-llvm-c6edcbdb5d849db2dd8ef4122873006b51726b1a.zip
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... llvm-svn: 45784
Diffstat (limited to 'clang/test/Sema/predefined-function.c')
-rw-r--r--clang/test/Sema/predefined-function.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/Sema/predefined-function.c b/clang/test/Sema/predefined-function.c
index bca25fb995b..80b5ab0c6bc 100644
--- a/clang/test/Sema/predefined-function.c
+++ b/clang/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()
{
OpenPOWER on IntegriCloud