aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/sfinae7.C
blob: 18b3d8fa61e8cbfa97fd00e5f7148f9f68ae5896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do compile { target c++11 } }

struct A
{
  void f();
  void f(int);
  typedef int g;
};

template <class T> decltype (T::f) f();
template <class T> void f();

template <class T> decltype (T::g) g();
template <class T> void g();

int main()
{
  f<A>();
  g<A>();
}