aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype56.C
blob: b44fad098fe65fe3cf46a63ed8d8c88c135831a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/52816
// { dg-do compile { target c++11 } }

class c {
  int f;
  public:
  template <typename A>
  decltype(f) m(A) const;
};

decltype(c{}.m(0)) i;