summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/implicit-builtin-decl.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-17 03:23:10 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-17 03:23:10 +0000
commita908e7fcccf038abcb665be9192a71a7ec0b8394 (patch)
tree38a3e4a3d813860f8f57242fd4b102607a9c5873 /clang/test/Sema/implicit-builtin-decl.c
parentb317efdf818b7cbbb5fb3f707d2c7113a26c182a (diff)
downloadbcm5719-llvm-a908e7fcccf038abcb665be9192a71a7ec0b8394.tar.gz
bcm5719-llvm-a908e7fcccf038abcb665be9192a71a7ec0b8394.zip
Static variables and functions won't collide with standard library
functions, so if we're declaring a static we should implicitly declare a library function by the same name (e.g., malloc, strdup). Fixes PR3592. llvm-svn: 64736
Diffstat (limited to 'clang/test/Sema/implicit-builtin-decl.c')
-rw-r--r--clang/test/Sema/implicit-builtin-decl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/test/Sema/implicit-builtin-decl.c b/clang/test/Sema/implicit-builtin-decl.c
index 892e372eff6..efaf3ed4553 100644
--- a/clang/test/Sema/implicit-builtin-decl.c
+++ b/clang/test/Sema/implicit-builtin-decl.c
@@ -41,4 +41,3 @@ void * realloc(void *p, int size) { // expected-warning{{incompatible redeclarat
// expected-note{{use -ffreestanding to compile as a freestanding implementation}}
return p;
}
-
OpenPOWER on IntegriCloud