summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/sfinae1.C
blob: 292d8ae04b00bf00fb99924f37590fac6e051403 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-options "-std=c++0x" }

template< typename T_VECTOR >
void f(const T_VECTOR &a, decltype(a[0]) t = 0);
template< typename T >
void f(const T &a, decltype(a*1) t = 0);

int main() {
  int c;
  f(c);
}