summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/sfinae7.C
blob: 0a95a9644c74b800be9416a93a7aafdb4b4e4ecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-options -std=c++0x }

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>();
}