Skip to content

Commit b90961e

Browse files
Update irbuild-classes.test
1 parent 9fce629 commit b90961e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

mypyc/test-data/irbuild-classes.test

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2705,8 +2705,21 @@ def isinstance_interpreted_subclasses(x: Any) -> bool:
27052705
return isinstance(x, InterpSubclasses)
27062706
[out]
27072707
def isinstance_nonnative(x):
2708-
x :: Any
2708+
x, r0 :: object
2709+
r1 :: ptr
2710+
r2 :: object
2711+
r3 :: r2 == r0
2712+
return r3
27092713
L0:
2714+
r0 = __main__.NonNative :: type
2715+
r1 = get_element_ptr x ob_type :: PyObject
2716+
r2 :: borrow load_mem r1 :: builtins.object*
2717+
r3 :: r2 == r0
2718+
return r3
27102719
def isinstance_interpreted_subclasses(x):
2711-
x :: Any
2720+
x, r0 :: object
2721+
r1 :: bool
27122722
L0:
2723+
r0 = __main__.InterpSubclasses :: type
2724+
r1 = CPy_TypeCheck(x, r0)
2725+
return r1

0 commit comments

Comments
 (0)