[IR][tests] Rename top-level declarations in visibility-related tests to distinguish them from nested declarations

This commit is contained in:
Dmitriy Dolovov
2022-09-02 17:07:24 +02:00
parent 71d51801ce
commit 64867a1627
6 changed files with 18 additions and 18 deletions
@@ -2,8 +2,8 @@ import abitestutils.abiTest
fun box() = abiTest {
val c = ContainerImpl()
expectSuccess(42) { publicToInternalFunction() }
expectFailure(prefixed("function publicToPrivateFunction can not be called")) { publicToPrivateFunction() }
expectSuccess(42) { publicToInternalTopLevelFunction() }
expectFailure(prefixed("function publicToPrivateTopLevelFunction can not be called")) { publicToPrivateTopLevelFunction() }
expectSuccess(42) { c.publicToProtectedFunction() }
expectFailure(prefixed("function publicToInternalFunction can not be called")) { c.publicToInternalFunction() }
expectFailure(prefixed("function publicToPrivateFunction can not be called")) { c.publicToPrivateFunction() }