#include <iostream>
 
// Valid example:
void foo(const int& x)
{
    std::cout << x << std::endl;
}
 
int main()
{
    // legal; the temporary is bound to a const reference, so the compiler doesn't have to worry about foo() modifying it
    foo(7 * 6);
}