[cfe-commits] r64513 - /cfe/trunk/test/SemaCXX/no-implicit-builtin-decls.cpp

Douglas Gregor dgregor at apple.com
Fri Feb 13 16:37:42 PST 2009


Author: dgregor
Date: Fri Feb 13 18:37:42 2009
New Revision: 64513

URL: http://llvm.org/viewvc/llvm-project?rev=64513&view=rev
Log:
Add test case to insure that implicit builtin declarations for C library functions aren't created in C++

Added:
    cfe/trunk/test/SemaCXX/no-implicit-builtin-decls.cpp

Added: cfe/trunk/test/SemaCXX/no-implicit-builtin-decls.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/no-implicit-builtin-decls.cpp?rev=64513&view=auto

==============================================================================
--- cfe/trunk/test/SemaCXX/no-implicit-builtin-decls.cpp (added)
+++ cfe/trunk/test/SemaCXX/no-implicit-builtin-decls.cpp Fri Feb 13 18:37:42 2009
@@ -0,0 +1,7 @@
+// RUN: clang -fsyntax-only -verify %s
+
+void f() {
+  void *p = malloc(sizeof(int) * 10); // expected-error{{no matching function for call to 'malloc'}}
+}
+
+int malloc(double);





More information about the cfe-commits mailing list