diff --git a/third_party/ijar/test/kotlin/InlineCases.kt b/third_party/ijar/test/kotlin/InlineCases.kt new file mode 100644 index 00000000000000..b2a164c875e4e4 --- /dev/null +++ b/third_party/ijar/test/kotlin/InlineCases.kt @@ -0,0 +1,15 @@ +fun freeInlineFun(op: () -> Unit) { op() } + +class ClassWithInline { + inline fun classInlineFun(op: () -> Unit) { op() } +} + +object ObjectWithInline { + inline fun objectInlineFun(op: () -> Unit) { op() } +} + +abstract class AbstractClassWithInline { + inline fun inheritedInlineFun(op: () -> Unit) { op() } +} + +object ObjectInheritingInline: AbstractClassWithInline() \ No newline at end of file diff --git a/third_party/ijar/test/kotlin/inline-cases.jar b/third_party/ijar/test/kotlin/inline-cases.jar new file mode 100644 index 00000000000000..ac289f7f13a99e Binary files /dev/null and b/third_party/ijar/test/kotlin/inline-cases.jar differ diff --git a/third_party/ijar/test/kotlin/regen.sh b/third_party/ijar/test/kotlin/regen.sh new file mode 100755 index 00000000000000..bfc26f08b2c1fb --- /dev/null +++ b/third_party/ijar/test/kotlin/regen.sh @@ -0,0 +1,3 @@ +#!/bin/bash -eu + +kotlinc -module-name inline-cases -d inline-cases.jar InlineCases.kt \ No newline at end of file