If I have a program:
#include using namespace std; int TestIntReturn(int &x, int &y) { x = 1000; y = 1000; return x+y;
Nothing - it goes into the ether, and is not stored/used. The return value itself is an rvalue or temporary; I believe the compiler will optimize even the temporary creation out due to it not actually being used.