summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/implicit-builtin-redecl.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-03-23 17:47:24 +0000
committerDouglas Gregor <dgregor@apple.com>2009-03-23 17:47:24 +0000
commit893c2c963a5db7abddfa4b37e9d69f89131aafbd (patch)
tree8f822cb67b4359d5e9e9f54e2d1f52c172686c6b /clang/test/Sema/implicit-builtin-redecl.c
parentf477262e69ce9ed268c45272c8c2f0fdd59713fe (diff)
downloadbcm5719-llvm-893c2c963a5db7abddfa4b37e9d69f89131aafbd.tar.gz
bcm5719-llvm-893c2c963a5db7abddfa4b37e9d69f89131aafbd.zip
Fix PR3855. When we encounter an incompatible redeclaration of a
library function, accept this declaration and pretend that we do not know that this is a library function. autoconf depends on this (broken) behavior. llvm-svn: 67541
Diffstat (limited to 'clang/test/Sema/implicit-builtin-redecl.c')
-rw-r--r--clang/test/Sema/implicit-builtin-redecl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/implicit-builtin-redecl.c b/clang/test/Sema/implicit-builtin-redecl.c
index c9b38558b3e..2ad35185b25 100644
--- a/clang/test/Sema/implicit-builtin-redecl.c
+++ b/clang/test/Sema/implicit-builtin-redecl.c
@@ -10,5 +10,5 @@ void *calloc(int, int, int); // expected-warning{{incompatible redeclaration of
// expected-note{{'calloc' is a builtin with type 'void *}}
void f1(void) {
- return calloc(0, 0, 0); // expected-error{{too many arguments to function call}}
+ calloc(0, 0, 0);
}
OpenPOWER on IntegriCloud