blob: e1f62cd96066c6fa788aed734dce2bd787fde1f4 [file] [log] [blame]
import org.checkerframework.common.value.qual.MinLen;
public class LengthTransferForMinLen {
void exceptional_control_flow(int[] a) {
if (a.length == 0) {
throw new IllegalArgumentException();
}
int @MinLen(1) [] b = a;
}
void equal_to_return(int[] a) {
if (a.length == 0) {
return;
}
int @MinLen(1) [] b = a;
}
void gt_check(int[] a) {
if (a.length > 0) {
int @MinLen(1) [] b = a;
}
}
}