Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ref3.C
blob: 7936536042d57fa211683bff81f9f1c19bf70160 [
file
] [
log
] [
blame
]
// PR c++/50298
// { dg-do compile { target c++11 } }
int
global_variable
;
template
<
class
T
>
struct
X
{
static
constexpr
T r
=
global_variable
;
};
X
<
int
&>
x
;