summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/decltype23.C
blob: 78eb89d8ee2558702142ce6fb1f71bd5cc14a0b2 (plain)
1
2
3
4
5
// { dg-options -std=c++0x }

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;