]> granicus.if.org Git - clang/commitdiff
Update test case.
authorTed Kremenek <kremenek@apple.com>
Thu, 6 Aug 2009 06:26:40 +0000 (06:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 6 Aug 2009 06:26:40 +0000 (06:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78290 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/CheckNSError.m

index 779b865aff8cb077f28ae1cca40b780a6266e2c6..5f92594f30d826fd9a86b830bba2ab19d94bdcbd 100644 (file)
@@ -24,7 +24,7 @@ extern NSString * const NSXMLParserErrorDomain ;
 @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 @@ extern NSString * const NSXMLParserErrorDomain ;
 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.}}
 }