[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git] / clang / test / Analysis / track-control-dependency-conditions.m
blob0f690bfe0362b7583ca20c8eb7bd3f81ccf1e32f
1 // RUN: %clang_analyze_cc1 -w -analyzer-checker=core,nullability -verify %s
3 // expected-no-diagnostics
5 @class C;
7 #pragma clang assume_nonnull begin
8 @interface I
9 - foo:(C *)c;
10 @end
11 #pragma clang assume_nonnull end
13 @interface J
14 @property C *c;
15 @end
17 J *conjure_J(void);
19 @implementation I
20 - (void)bar {
21   if (self) { // no-crash
22     J *j = conjure_J();
23     if (j.c)
24       [self bar];
25     // FIXME: Should warn.
26     [self foo:j.c]; // no-warning
27   }
29 @end
31 @implementation J
32 @end