You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
270 B

// RUN: %clang_analyze_cc1 -analyzer-checker core,nullability -w -verify %s
// expected-no-diagnostics
id _Nonnull conjure_nonnull();
void use_nullable(_Nullable id x);
id _Nonnull foo() {
void *j = conjure_nonnull();
use_nullable(j);
return j; // no-warning
}