Lines Matching refs:to_lvalue_ref

294 consteval const A &to_lvalue_ref(const A &&a) {  in to_lvalue_ref()  function
302 { A k = to_lvalue_ref(A()); }// expected-error {{is not a constant expression}} in test()
304 { A k = to_lvalue_ref(A().ret_a()); } // expected-error {{is not a constant expression}} in test()
313 { int k = const_a_ref(to_lvalue_ref(A().ret_a())); } in test()
314 { int k = const_a_ref(to_lvalue_ref(std::move(a))); } in test()
316 { int k = by_value_a(to_lvalue_ref(std::move(a))); } in test()
351 consteval const A &to_lvalue_ref(const A &&a) { in to_lvalue_ref() function
360 { A k = to_lvalue_ref(A()); } // expected-error {{is not a constant expression}} in test()
362 { A k = to_lvalue_ref(A().ret_a()); } // expected-error {{is not a constant expression}} in test()
371 { int k = const_a_ref(to_lvalue_ref(A().ret_a())); } in test()
372 { int k = const_a_ref(to_lvalue_ref(std::move(a))); } in test()
374 { int k = by_value_a(to_lvalue_ref(static_cast<const A&&>(a))); } in test()
558 constexpr const Copy &to_lvalue_ref(const Copy &&a) { in to_lvalue_ref() function
570 …{ Copy c(to_lvalue_ref((Copy(&f_eval)))); }// expected-error {{is not a constant expression}} expe… in test()
571 { Copy c(to_lvalue_ref(std::move(C))); } in test()
572 …{ Copy c(to_lvalue_ref(std::move(Copy(&f_eval)))); }// expected-error {{is not a constant expressi… in test()
577 …{ Copy c = Copy(to_lvalue_ref(Copy(&f_eval))); }// expected-error {{is not a constant expression}}… in test()
578 { Copy c = Copy(to_lvalue_ref(std::move(C))); } in test()
579 …{ Copy c = Copy(to_lvalue_ref(std::move(Copy(&f_eval)))); }// expected-error {{is not a constant e… in test()
584 …{ Copy c; c = Copy(to_lvalue_ref(Copy(&f_eval))); }// expected-error {{is not a constant expressio… in test()
585 { Copy c; c = Copy(to_lvalue_ref(std::move(C))); } in test()
586 …{ Copy c; c = Copy(to_lvalue_ref(std::move(Copy(&f_eval)))); }// expected-error {{is not a constan… in test()
591 …{ Copy* c; c = new Copy(to_lvalue_ref(Copy(&f_eval))); }// expected-error {{is not a constant expr… in test()
592 { Copy* c; c = new Copy(to_lvalue_ref(std::move(C))); } in test()
593 …{ Copy* c; c = new Copy(to_lvalue_ref(std::move(Copy(&f_eval)))); }// expected-error {{is not a co… in test()