Skip to content

Commit

Permalink
bazelbuild#4549 kotlin ijar test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyed committed Feb 13, 2018
1 parent a11e8ff commit f22daf4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions third_party/ijar/test/kotlin/InlineCases.kt
Original file line number Diff line number Diff line change
@@ -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()
Binary file added third_party/ijar/test/kotlin/inline-cases.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions third_party/ijar/test/kotlin/regen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash -eu

kotlinc -module-name inline-cases -d inline-cases.jar InlineCases.kt

0 comments on commit f22daf4

Please sign in to comment.