cmake/c++11-test-rvalue_references-N2118.cpp

Thu, 22 Aug 2013 20:24:16 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 22 Aug 2013 20:24:16 +0300
changeset 473
2a84149fe642
permissions
-rw-r--r--

Changed build system from qmake to CMake.

int foo(int& lvalue)
{
	return 123;
}

int foo(int&& rvalue)
{
	return 321;
}

int main()
{
	int i = 42;
	return ((foo(i) == 123) && (foo(42) == 321)) ? 0 : 1;
}

mercurial