IR: first smoke test

This commit is contained in:
Dmitry Petrov
2016-08-02 16:13:48 +03:00
committed by Dmitry Petrov
parent 520a3133bc
commit ad405f26fd
34 changed files with 1296 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
fun testFun() {}
val testSimpleVal = 1
val testValWithGetter: Int get() = 42
var testSimpleVar = 2
var testVarWithAccessors: Int
get() = 42
set(v) {}
// 1 IrFunction public fun testFun
// 1 IrProperty public val testSimpleVal
// 1 IrProperty public val testValWithGetter
// 2 IrPropertyGetter
// 1 IrProperty public var testSimpleVar
// 1 IrProperty public var testVarWithAccessors
// 1 IrPropertyGetter
// IR_FILE_TXT smoke.txt
+15
View File
@@ -0,0 +1,15 @@
IrFile /smoke.kt
IrFunction public fun testFun(): kotlin.Unit
??? IrDummyBody
IrProperty public val testSimpleVal: kotlin.Int = 1
??? IrDummyBody
IrProperty public val testValWithGetter: kotlin.Int
IrPropertyGetter public fun <get-testValWithGetter>(): kotlin.Int
??? IrDummyBody
IrProperty public var testSimpleVar: kotlin.Int
??? IrDummyBody
IrProperty public var testVarWithAccessors: kotlin.Int
IrPropertyGetter public fun <get-testVarWithAccessors>(): kotlin.Int
??? IrDummyBody
IrPropertySetter public fun <set-testVarWithAccessors>(/*0*/ v: kotlin.Int): kotlin.Unit
??? IrDummyBody