Skip to content

Commit e494f0c

Browse files
Update irbuild-str.test
1 parent 60c093f commit e494f0c

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

mypyc/test-data/irbuild-str.test

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,11 +752,22 @@ def literal_both() -> bool:
752752
return literal == "literal"
753753
[out]
754754
def literal_rhs(x):
755-
x :: str
755+
x, r0 :: str
756+
r1 :: bool
756757
L0:
758+
r0 = 'literal'
759+
r1 = CPyStr_EqualLiteral(x, r0, 7)
760+
return r1
757761
def literal_lhs(x):
758-
x :: str
762+
x, r0 :: str
763+
r1 :: bool
759764
L0:
765+
r0 = 'literal'
766+
r1 = CPyStr_EqualLiteral(x, r0, 7)
767+
return r1
760768
def literal_both():
761-
r0 :: bool
769+
r0, r1 :: str
762770
L0:
771+
r0 = 'literal'
772+
r1 = 'literal'
773+
return 1

0 commit comments

Comments
 (0)