Debian Codegraph @

rpython/jit/backend/riscv/test/test_send.py

raw symbols SCIP
1 #!/usr/bin/env python
2
3 from rpython.jit.backend.riscv.test.test_basic import JitRISCVMixin
4 from rpython.jit.metainterp.test.test_send import SendTests
5 from rpython.rlib import jit
6
7
8 class TestSend(JitRISCVMixin, SendTests):
9 # for the individual tests see
10 # ====> ../../../metainterp/test/test_send.py
11
12 def test_call_with_additional_args(self):
13 @jit.dont_look_inside
14 def externfn(a, b, c, d):
15 return a + b * 10 + c * 100 + d * 1000
16 def f(a, b, c, d):
17 return externfn(a, b, c, d)
18 res = self.interp_operations(f, [1, 2, 3, 4])
19 assert res == 4321