Fix python bindings tests after change in visibility requirement for symbol declarations

This commit is contained in:
Mehdi Amini 2020-11-17 04:08:35 +00:00
parent fac0622ae0
commit 74207e78cf
2 changed files with 3 additions and 3 deletions

View File

@ -60,12 +60,12 @@ run(testCreateEmpty)
# Note that this does not test that the print path converts unicode properly
# because MLIR asm always normalizes it to the hex encoding.
# CHECK-LABEL: TEST: testRoundtripUnicode
# CHECK: func @roundtripUnicode()
# CHECK: func private @roundtripUnicode()
# CHECK: foo = "\F0\9F\98\8A"
def testRoundtripUnicode():
ctx = Context()
module = Module.parse(r"""
func @roundtripUnicode() attributes { foo = "😊" }
func private @roundtripUnicode() attributes { foo = "😊" }
""", ctx)
print(str(module))

View File

@ -320,7 +320,7 @@ def testOperationResultList():
%0:3 = call @f2() : () -> (i32, f64, index)
return
}
func @f2() -> (i32, f64, index)
func private @f2() -> (i32, f64, index)
""", ctx)
caller = module.body.operations[0]
call = caller.regions[0].blocks[0].operations[0]