def METHOD_NAME(f, const):
    _, d = f
    with pytest.raises(RuntimeError):
        domain = ""
        instructions = """
        c[0] = d[0, 0]
        """
        par_loop((domain, instructions), direct, {'c': (const, WRITE), 'd': (d, READ)})