Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/decltype-auto1.C

raw
1 // PR c++/78209
2 // { dg-do compile { target c++14 } }
3
4 int main()
5 {
6 int &&i = 0;
7 decltype(auto) j = i; // { dg-error "cannot bind rvalue reference" }
8 }