aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype23.C
blob: 731eed708e54e60a402099816d53ee1b7e1c51b2 (plain)
1
2
3
4
5
// { dg-do compile { target c++11 } }

int x, &&y = static_cast<int &&>(x);
typedef decltype((y)) myInt;  // `y' is a parenthesized id-expression of type int that is an lvalue
typedef int &myInt;