Change test to explicit module level constant.

pull/1/head
Stella Laurenzo 2020-06-22 18:46:40 -07:00
parent e5958d820f
commit 5e54bcfc8c
1 changed files with 4 additions and 4 deletions

View File

@ -23,11 +23,11 @@ def global_int():
return OUTER_ONE
# CHECK-LABEL: func @module_docstring
# CHECK-LABEL: func @module_string
@import_global
def module_docstring():
# CHECK: basicpy.str_constant "Module docstring."
return __doc__
def module_string():
# CHECK: basicpy.str_constant "Hello"
return OUTER_STRING
# CHECK-LABEL: func @builtin_debug