blob: 29dd91ac4187e4a8b0849bc4b6b72a62e0ab6033 [file] [log] [blame]
// This tests normally tests that parameters (including receiver parameters) marked as @Owning are
// still checked.
// This version is modified for -AnoLightweightOwnership to expect the opposite behavior.
import org.checkerframework.checker.mustcall.qual.*;
class OwningParams {
static void o1(@Owning OwningParams o) {}
void test(@Owning @MustCall({"a"}) OwningParams o) {
o1(o);
}
}