forked from M-Labs/artiq
1
0
Fork 0
artiq/lit-test/test/integration/class.py

14 lines
216 B
Python
Raw Normal View History

# RUN: %python -m artiq.compiler.testbench.jit %s
# RUN: %python %s
class c:
a = 1
def f():
return 2
2015-08-19 13:39:22 +08:00
def g(self):
return self.a + 5
assert c.a == 1
assert c.f() == 2
2015-08-19 13:39:22 +08:00
assert c().g() == 6