Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/constexpr-ref1.C

raw
1 // PR c++/64080
2 // { dg-do compile { target c++14 } }
3
4 constexpr void foo (int&& i) { i = 0; }
5
6 void bar(int&& i)
7 {
8 bool b = noexcept(foo(static_cast<int&&>(i)));
9 }