summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bytecode/mp-tests/class4.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bytecode/mp-tests/class4.py')
-rw-r--r--tests/bytecode/mp-tests/class4.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/bytecode/mp-tests/class4.py b/tests/bytecode/mp-tests/class4.py
new file mode 100644
index 0000000000..4cb6258093
--- /dev/null
+++ b/tests/bytecode/mp-tests/class4.py
@@ -0,0 +1,9 @@
+class A:
+ def __init__(self, x):
+ self.x = x
+ self.y = 0
+
+ def get(self):
+ return self.x + self.y
+A(1)
+A(2).get()