Added test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50711
91177308-0d34-0410-b5e6-
96231b3b80d8
if (s[0] == '\0')
break;
- if (s[0]!='W' || s[1]!='i' || s[2]!='t' || s[3]!='h')
+ if (!strncmp(s, "With", 4))
break;
return 0;
#include <CoreFoundation/CFDate.h>
#include <Foundation/NSDate.h>
+#include <Foundation/NSCalendarDate.h>
+#include <Foundation/NSString.h>
CFAbsoluteTime f1() {
CFAbsoluteTime t = CFAbsoluteTimeGetCurrent();
return date; // expected-warning{{leak}}
}
+NSDate* f9(int x) {
+
+ NSDate* date = [NSDate dateWithString:@"2001-03-24 10:45:32 +0600"];
+
+ if (x) [date retain];
+
+ return date; // expected-warning{{leak}}
+}
+