Home
last modified time | relevance | path

Searched refs:CHECK_COPIES (Results 1 – 1 of 1) sorted by relevance

/third_party/boost/libs/move/test/
Dcopy_elision_test.cpp68 #define CHECK_COPIES( stmt, min, max, comment ) \ macro
153 CHECK_COPIES( X a(( lvalue() )), 1U, 1U, "Direct initialization from lvalue"); in main()
154 CHECK_COPIES( X a(( rvalue() )), 0U, 1U, "Direct initialization from rvalue"); in main()
156 CHECK_COPIES( X a = lvalue(), 1U, 1U, "Copy initialization from lvalue" ); in main()
157 CHECK_COPIES( X a = rvalue(), 0U, 1U, "Copy initialization from rvalue" ); in main()
159 CHECK_COPIES( sink( lvalue() ), 1U, 1U, "Pass lvalue by value" ); in main()
160 CHECK_COPIES( sink( rvalue() ), 0U, 1U, "Pass rvalue by value" ); in main()
162 CHECK_COPIES( nrvo_source(), 0U, 1U, "Named return value optimization (NRVO)" ); in main()
163 CHECK_COPIES( urvo_source(), 0U, 1U, "Unnamed return value optimization (URVO)" ); in main()
166 CHECK_COPIES( X a(urvo_source()), 0U, 2U, "Return value used as ctor arg" ); in main()
[all …]