diff options
| author | Steve Naroff <snaroff@apple.com> | 2008-01-09 22:43:08 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2008-01-09 22:43:08 +0000 |
| commit | c6edcbdb5d849db2dd8ef4122873006b51726b1a (patch) | |
| tree | 9a9f8771440939ad697abf93d9372c65a88fa521 /clang/test/Sema/predefined-function.c | |
| parent | 436db42a3c2229a2ffb2994aa6776402a4b893bb (diff) | |
| download | bcm5719-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.c | 6 |
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() { |

