Example #1
0
def array_alloc_var_index_out_of_bounds():
    """This tests causes a segmentation fault."""
    a = zeros(5, dtype=int)
    i = 5
    a[i] = 42
Example #2
0
def array_alloc_const_index_out_of_bounds():
    a = zeros(5, dtype=int)
    a[5] = 42
Example #3
0
def zeros_no_type():
    a = zeros(5)  # noqa
Example #4
0
def array_alloc_var_index_out_of_bounds():
    """This tests causes a segmentation fault."""
    a = zeros(5, dtype=int)
    i = 5
    a[i] = 42
Example #5
0
def array_alloc_const_index_out_of_bounds():
    a = zeros(5, dtype=int)
    a[5] = 42
Example #6
0
def zeros_no_type():
    a = zeros(5)  # noqa