Skip to content

Commit

Permalink
[IR] update testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
bashor authored and teamcityserver committed Nov 25, 2020
1 parent 6a1ab1b commit fc5c674
Show file tree
Hide file tree
Showing 94 changed files with 354 additions and 354 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ open class Base {

class Test1 : Base {
constructor(xx: Int, yy: Int) /* primary */ {
{ //BLOCK
{ // BLOCK
TODO("IrDelegatingConstructorCall")
}
/* InstanceInitializerCall */
Expand All @@ -34,15 +34,15 @@ class Test1 : Base {

class Test2 : Base {
constructor(xx: Int, yy: Int) {
{ //BLOCK
{ // BLOCK
TODO("IrDelegatingConstructorCall")
}
/* InstanceInitializerCall */

}

constructor(xxx: Int, yyy: Int, a: Any) {
{ //BLOCK
{ // BLOCK
TODO("IrDelegatingConstructorCall")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ interface IOther {
}

fun otherImpl(x0: String, y0: Int): IOther {
return { //BLOCK
return { // BLOCK
local class <no name provided> : IOther {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
Expand Down
2 changes: 1 addition & 1 deletion compiler/testData/ir/irText/classes/enum.kt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ enum class TestEnum6 : Enum<TestEnum6> {
field = y
get

TEST init = { //BLOCK
TEST init = { // BLOCK
val tmp0_y: Int = f()
val tmp1_x: Int = f()
TODO("IrEnumConstructorCall")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data class A {
}

data class B {
constructor(x: Any = { //BLOCK
constructor(x: Any = { // BLOCK
local class <no name provided> {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface IFoo {
}

val test1: Any
field = { //BLOCK
field = { // BLOCK
local class <no name provided> {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
Expand All @@ -25,7 +25,7 @@ val test1: Any
get

val test2: IFoo
field = { //BLOCK
field = { // BLOCK
local class <no name provided> : IFoo {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
Expand Down Expand Up @@ -68,7 +68,7 @@ class Outer {
}

fun test3(): Inner {
return { //BLOCK
return { // BLOCK
local class <no name provided> : Inner {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
Expand Down Expand Up @@ -96,7 +96,7 @@ class Outer {
}

fun Outer.test4(): Inner {
return { //BLOCK
return { // BLOCK
local class <no name provided> : Inner {
constructor() /* primary */ {
TODO("IrDelegatingConstructorCall")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
val test: Unit
field = try { //BLOCK
field = try { // BLOCK
}
catch (...) { //BLOCK
catch (...) { // BLOCK
}

get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fun test2() {


<set-x>(value = 0)
{ //BLOCK
{ // BLOCK
val tmp0: Int = <get-x>()
<set-x>(value = tmp0.inc())
tmp0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
fun foo() {
{ //BLOCK
{ // BLOCK
do// COMPOSITE {
val x: Int = 42
// } while (EQEQ(arg0 = x, arg1 = 42).not())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fun f(f1: Function0<String> = local fun <anonymous>(): String {

fun box(): String {
var result: String = "fail"
try { //BLOCK
try { // BLOCK
f() /*~> Unit */
}
catch (...) { //BLOCK
catch (...) { // BLOCK
result = "OK"
}

Expand Down
2 changes: 1 addition & 1 deletion compiler/testData/ir/irText/declarations/typeAlias.kt.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
typealias Test1 = String
fun foo() {
{ //BLOCK
{ // BLOCK
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ class C {

fun testVariable() {
var x: IntArray = foo()
{ //BLOCK
{ // BLOCK
val tmp0_array: IntArray = x
val tmp1_index0: Int = 0
tmp0_array.set(index = tmp1_index0, value = tmp0_array.get(index = tmp1_index0).plus(other = 1))
}
}

fun testCall() {
{ //BLOCK
{ // BLOCK
val tmp0_array: IntArray = foo()
val tmp1_index0: Int = bar()
tmp0_array.set(index = tmp1_index0, value = tmp0_array.get(index = tmp1_index0).times(other = 2))
}
}

fun testMember(c: C) {
{ //BLOCK
{ // BLOCK
val tmp0_array: IntArray = c.<get-x>()
val tmp1_index0: Int = 0
val tmp2: Int = tmp0_array.get(index = tmp1_index0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface IB {
}

fun IB.test(a: IA) {
{ //BLOCK
{ // BLOCK
val tmp0_array: IA = a
val tmp1_index0: String = ""
<this>.set($receiver = tmp0_array, index = tmp1_index0, value = tmp0_array.get(index = tmp1_index0).plus(other = 42))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ fun testVariable() {
}

fun testProperty() {
{ //BLOCK
{ // BLOCK
<set-p>(<set-?> = <get-p>().plus(other = 1))
}
{ //BLOCK
{ // BLOCK
<set-p>(<set-?> = <get-p>().minus(other = 2))
}
{ //BLOCK
{ // BLOCK
<set-p>(<set-?> = <get-p>().times(other = 3))
}
{ //BLOCK
{ // BLOCK
<set-p>(<set-?> = <get-p>().div(other = 4))
}
{ //BLOCK
{ // BLOCK
<set-p>(<set-?> = <get-p>().rem(other = 5))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ fun testVariable() {
}

fun testProperty() {
{ //BLOCK
{ // BLOCK
plusAssign($receiver = <get-p>(), s = "+=")
}
{ //BLOCK
{ // BLOCK
minusAssign($receiver = <get-p>(), s = "-=")
}
{ //BLOCK
{ // BLOCK
timesAssign($receiver = <get-p>(), s = "*=")
}
{ //BLOCK
{ // BLOCK
divAssign($receiver = <get-p>(), s = "/=")
}
{ //BLOCK
{ // BLOCK
remAssign($receiver = <get-p>(), s = "%=")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ fun test1() {
}

fun test2() {
while (true) { //BLOCK
while (true) { // BLOCK
error("") /* ERROR EXPRESSION */
error("") /* ERROR EXPRESSION */
}
}

fun test3() {
while (true) { //BLOCK
while (true) { // BLOCK
val lambda: Function0<Nothing> = local fun <anonymous>(): Nothing {
error("") /* ERROR EXPRESSION */
error("") /* ERROR EXPRESSION */
Expand All @@ -21,9 +21,9 @@ fun test3() {
}

fun test4() {
while (error("") /* ERROR EXPRESSION */) { //BLOCK
while (error("") /* ERROR EXPRESSION */) { // BLOCK
}
while (error("") /* ERROR EXPRESSION */) { //BLOCK
while (error("") /* ERROR EXPRESSION */) { // BLOCK
}
}

2 changes: 1 addition & 1 deletion compiler/testData/ir/irText/expressions/bangbang.kt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ fun test1(a: Any?): Any {
}

fun test2(a: Any?): Int {
return CHECK_NOT_NULL<Int>(arg0 = { //BLOCK
return CHECK_NOT_NULL<Int>(arg0 = { // BLOCK
val tmp0_safe_receiver: Any? = a
when {
EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null
Expand Down
24 changes: 12 additions & 12 deletions compiler/testData/ir/irText/expressions/breakContinue.kt.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
fun test1() {
while (true) { //BLOCK
while (true) { // BLOCK
break
}
{ //BLOCK
{ // BLOCK
do// COMPOSITE {
break
// } while (true)
}
while (true) { //BLOCK
while (true) { // BLOCK
continue
}
{ //BLOCK
{ // BLOCK
do// COMPOSITE {
continue
// } while (true)
}
}

fun test2() {
while (true) { //BLOCK
while (true) { //BLOCK
while (true) { // BLOCK
while (true) { // BLOCK
break
break
}
break
}
while (true) { //BLOCK
while (true) { //BLOCK
while (true) { // BLOCK
while (true) { // BLOCK
continue
continue
}
Expand All @@ -35,14 +35,14 @@ fun test2() {
}

fun test3() {
while (true) { //BLOCK
while (true) { //BLOCK
while (true) { // BLOCK
while (true) { // BLOCK
break
}
break
}
while (true) { //BLOCK
while (true) { //BLOCK
while (true) { // BLOCK
while (true) { // BLOCK
continue
}
continue
Expand Down
Loading

0 comments on commit fc5c674

Please sign in to comment.