/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-ref1.C
blob6f88f82c0b09b31c60c1f787f8e81a50a0beaacc
1 // PR c++/64080
2 // { dg-do compile { target c++14 } }
4 constexpr void foo (int&& i) { i = 0; }
6 void bar(int&& i)
8   bool b = noexcept(foo(static_cast<int&&>(i)));