Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/ref-qual18.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
// PR c++/71784 // { dg-do compile { target c++11 } } template<typename T> struct A { template<typename U> void f(U const&) & { } template<typename U> void f(U const&) && { } }; template void A<int>::f<int>(int const&) &; template void A<float>::f<int>(int const&) &&; template<typename T> struct B { void f(int const&) & { } void f(int const&) && { } }; template void B<int>::f(int const&) &; template void B<float>::f(int const&) &&;