// RUN_PIPELINE_TILL: FRONTEND
class A {
    companion <!REDECLARATION!>object<!> {

    }

    <!MANY_COMPANION_OBJECTS!>companion<!> <!REDECLARATION!>object<!> {

    }
}

class B {
    companion object A {

    }

    <!MANY_COMPANION_OBJECTS!>companion<!> object B {

    }
}

/* GENERATED_FIR_TAGS: classDeclaration, companionObject, objectDeclaration */
