[cfe-commits] r78290 - /cfe/trunk/test/Analysis/CheckNSError.m

Ted Kremenek kremenek at apple.com
Wed Aug 5 23:26:40 PDT 2009


Author: kremenek
Date: Thu Aug  6 01:26:40 2009
New Revision: 78290

URL: http://llvm.org/viewvc/llvm-project?rev=78290&view=rev
Log:
Update test case.

Modified:
    cfe/trunk/test/Analysis/CheckNSError.m

Modified: cfe/trunk/test/Analysis/CheckNSError.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/CheckNSError.m?rev=78290&r1=78289&r2=78290&view=diff

==============================================================================
--- cfe/trunk/test/Analysis/CheckNSError.m (original)
+++ cfe/trunk/test/Analysis/CheckNSError.m Thu Aug  6 01:26:40 2009
@@ -24,7 +24,7 @@
 @end
 
 @implementation A
-- (void)myMethodWhichMayFail:(NSError **)error {   // expected-warning {{Method accepting NSError** should have a non-void return value to indicate whether or not an error occured.}}
+- (void)myMethodWhichMayFail:(NSError **)error {   // expected-warning {{Method accepting NSError** should have a non-void return value to indicate whether or not an error occurred}}
   *error = [NSError errorWithDomain:@"domain" code:1 userInfo:0]; // expected-warning {{Potential null dereference.}}
 }
 
@@ -37,7 +37,7 @@
 struct __CFError {};
 typedef struct __CFError* CFErrorRef;
 
-void foo(CFErrorRef* error) { // expected-warning {{Function accepting CFErrorRef* should have a non-void return value to indicate whether or not an error occured.}}
+void foo(CFErrorRef* error) { // expected-warning {{Function accepting CFErrorRef* should have a non-void return value to indicate whether or not an error occurred}}
   *error = 0;  // expected-warning {{Potential null dereference.}}
 }
 





More information about the cfe-commits mailing list