#include <iostream>


struct sometype {
	sometype() { std::cout << "ctype()" << std::endl; }
	~sometype() { std::cout << "~ctype()" << std::endl; }
};

const sometype &foobar( const sometype &cref ) { return cref; }

int main()
{
	const sometype &cref1 = foobar( sometype() );
	sometype &&cref2 = std::move( sometype() );
	std::cout << "main continues" << std::endl;
}