1typedef int* _Nonnull mynonnull;
2
3__attribute__((objc_root_class))
4@interface typedefClass
5- (void) func1:(mynonnull)i;
6@end
7
8void func2(mynonnull i);
9
10void func3(int *); // expected-warning{{pointer is missing a nullability type specifier}}
11
12#define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained))
13typedef void *CFTypeRef;
14void cf1(CFTypeRef * p CF_RETURNS_NOT_RETAINED); // expected-warning {{pointer is missing a nullability type specifier}}
15
16void cf2(CFTypeRef * _Nullable p CF_RETURNS_NOT_RETAINED);
17void cf3(CFTypeRef * _Nonnull p CF_RETURNS_NOT_RETAINED);
18
19void cf4(CFTypeRef _Nullable * _Nullable p CF_RETURNS_NOT_RETAINED);
20void cf5(CFTypeRef _Nonnull * _Nullable p CF_RETURNS_NOT_RETAINED);
21
22void cf6(CFTypeRef * _Nullable CF_RETURNS_NOT_RETAINED p);
23void cf7(CF_RETURNS_NOT_RETAINED CFTypeRef * _Nonnull p);
24
25typedef CFTypeRef _Nullable *CFTypeRefPtr;
26void cfp1(CFTypeRefPtr p CF_RETURNS_NOT_RETAINED); // expected-warning {{pointer is missing a nullability type specifier}}
27void cfp2(CFTypeRefPtr _Nonnull p CF_RETURNS_NOT_RETAINED);
28