aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/decltype20.C
blob: 3155cdcf86a4bf51b5b1eef9bd5a374d88cce1da (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/42277
// { dg-options -std=c++0x }

struct S { int s; };
template <int N>
void foo ()
{
  S s;
  decltype (s.s) i;
}