[cfe-commits] r79042 - /cfe/trunk/test/SemaObjC/attr-malloc.m

Ted Kremenek kremenek at apple.com
Fri Aug 14 13:53:10 PDT 2009


Author: kremenek
Date: Fri Aug 14 15:53:10 2009
New Revision: 79042

URL: http://llvm.org/viewvc/llvm-project?rev=79042&view=rev
Log:
This test case does not need to include 'stdlib.h'.

Modified:
    cfe/trunk/test/SemaObjC/attr-malloc.m

Modified: cfe/trunk/test/SemaObjC/attr-malloc.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/attr-malloc.m?rev=79042&r1=79041&r2=79042&view=diff

==============================================================================
--- cfe/trunk/test/SemaObjC/attr-malloc.m (original)
+++ cfe/trunk/test/SemaObjC/attr-malloc.m Fri Aug 14 15:53:10 2009
@@ -1,7 +1,5 @@
 // RUN: clang-cc -verify -fsyntax-only -fblocks %s
 
-#include <stdlib.h>
-
 @interface TestAttrMallocOnMethods {}
 - (id) test1 __attribute((malloc)); // expected-warning{{'malloc' attribute only applies to function types}}
 - (int) test2 __attribute((malloc)); // expected-warning{{'malloc' attribute only applies to function types}}





More information about the cfe-commits mailing list