Lines Matching refs:forward
10 // test forward
43 static_assert(sizeof(test(std::forward<A&>(a))) == 1, "");
44 static_assert(sizeof(test(std::forward<A>(a))) == 4, "");
45 static_assert(sizeof(test(std::forward<A>(source()))) == 4, "");
47 static_assert(sizeof(test(std::forward<const A&>(a))) == 2, "");
48 // static_assert(sizeof(test(std::forward<const A&>(source()))) == 2, "");
49 static_assert(sizeof(test(std::forward<const A>(a))) == 8, "");
50 static_assert(sizeof(test(std::forward<const A>(source()))) == 8, "");
52 static_assert(sizeof(test(std::forward<const A&>(ca))) == 2, "");
53 // static_assert(sizeof(test(std::forward<const A&>(csource()))) == 2, "");
54 static_assert(sizeof(test(std::forward<const A>(ca))) == 8, "");
55 static_assert(sizeof(test(std::forward<const A>(csource()))) == 8, "");
59 static_assert(sizeof(test(std::forward<A&>(a))) == 1, "");
60 static_assert(sizeof(test(std::forward<A>(a))) == 1, "");
61 // static_assert(sizeof(test(std::forward<A>(source()))) == 2, "");
63 static_assert(sizeof(test(std::forward<const A&>(a))) == 2, "");
64 static_assert(sizeof(test(std::forward<const A&>(source()))) == 2, "");
65 static_assert(sizeof(test(std::forward<const A>(a))) == 2, "");
66 static_assert(sizeof(test(std::forward<const A>(source()))) == 2, "");
68 static_assert(sizeof(test(std::forward<const A&>(ca))) == 2, "");
69 static_assert(sizeof(test(std::forward<const A&>(csource()))) == 2, "");
70 static_assert(sizeof(test(std::forward<const A>(ca))) == 2, "");
71 static_assert(sizeof(test(std::forward<const A>(csource()))) == 2, "");
77 constexpr int i2 = std::forward<int>(42);