Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Drval-references.cpp12 struct not_int {}; struct
15 not_int over(int&&);
18 not_int over2(int&&);
21 operator not_int &&();
38 …(void)static_cast<not_int &&>(i1); // expected-error {{reference to type 'not_int' could not bind … in f()
43 not_int ni1 = over(0); in f()
45 not_int ni2 = over(ret_irr()); in f()
48 not_int ni3 = over2(0); in f()
54 not_int &&ni4 = cnir; in f()
55 …not_int &ni5 = cnir; // expected-error{{non-const lvalue reference to type 'not_int' cannot bind t… in f()
[all …]