☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-ref1.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/constexpr-ref1.C
code
plain
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
}