# mode: error # tag: werror, cpp, cpp11 # These tests check for unsupported use of rvalue-references (&&) # and should be removed or cleaned up when support is added. cdef int&& x cdef void foo(int&& x): pass cdef int&& bar(): pass cdef extern from *: """ void baz(int x, int&& y) {} template void qux(const T&& x) {} """ cdef void baz(int x, int&& y) cdef void qux[T](const T&& x) _ERRORS=""" 7:8: C++ rvalue-references cannot be declared 9:13: Rvalue-reference as function argument not supported 12:14: Rvalue-reference as function return type not supported 22:17: Rvalue-reference as function argument not supported 23:20: Rvalue-reference as function argument not supported """