#include <iostream>

int global = 1;

int& getGlobal() {
    std::cout << "getGlobal() called\n";
    return global;
}

int getSomeInt() {
    std::cout << "getSomeInt() called\n";
    return 2;
}

int main() {
    getGlobal() = getSomeInt();
}
