☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ref3.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-ref3.C
code
plain
raw
1
// PR c++/50298
2
// { dg-do compile { target c++11 } }
3
4
int global_variable;
5
6
template <class T> struct X {
7
static constexpr T r = global_variable;
8
};
9
10
X<int&> x;