Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype-1212.C
blob: f9c879e9525d8941340dcc4afb46fcf67d4478c4 [
file
] [
log
] [
blame
]
// Core 1212
// { dg-do compile { target c++11 } }
template
<
class
T
,
class
U
>
struct
assert_same_type
;
template
<
class
T
>
struct
assert_same_type
<
T
,
T
>
{};
int
main
()
{
int
i
;
assert_same_type
<
int
&&,
decltype
(
static_cast
<
int
&&>(
i
))>();
}