Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
))>();
}