forked from M-Labs/artiq
14 lines
216 B
Python
14 lines
216 B
Python
# RUN: %python -m artiq.compiler.testbench.jit %s
|
|
# RUN: %python %s
|
|
|
|
class c:
|
|
a = 1
|
|
def f():
|
|
return 2
|
|
def g(self):
|
|
return self.a + 5
|
|
|
|
assert c.a == 1
|
|
assert c.f() == 2
|
|
assert c().g() == 6
|