]> granicus.if.org Git - clang/commitdiff
s/__nonnull/_Nonnull in a test for Objective-C __kindof.
authorDouglas Gregor <dgregor@apple.com>
Tue, 7 Jul 2015 06:20:41 +0000 (06:20 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 7 Jul 2015 06:20:41 +0000 (06:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241563 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaObjC/kindof.m

index 7f795c514814866659337ef7b490d6c801df9c3d..b19e4237207880603cc8a780fd1462519c645920 100644 (file)
@@ -296,7 +296,7 @@ void implicit_convert_array(NSArray<__kindof NSString *> *kindofStringsArray,
 
 void testNullability() {
   // The base type being a pointer type tickles the bug.
-  extern __kindof id <NSCopying> __nonnull getSomeCopyable();
+  extern __kindof id <NSCopying> _Nonnull getSomeCopyable();
   NSString *string = getSomeCopyable(); // no-warning
 
   void processCopyable(__typeof(getSomeCopyable()) string);