#include <iostream>

static int const a_const = 5;

int const& A() {
	return a_const;
}

static int const* b_ptr = 0;

int const& B() {
	return *b_ptr;
}

int main() {
	int const& a_ref = A();
	
	std::cout << "Called A()" << std::endl;
	std::cout << "a_ref: " << a_ref << std::endl;
	
	int const& b_ref = B();
	
	std::cout << "Called B()" << std::endl;
	std::cout << "b_ref: " << b_ref << std::endl;
	
	return 0;
}