summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x/sfinae15.C
blob: 595ca40b5552ca9fa37d44274d10545764130dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/48531
// { dg-options -std=c++0x }

template<class T,
  class = decltype(T())
>
char f(int);

template<class>
char (&f(...))[2];

static_assert(sizeof(f<int[]>(0)) != 1, "Error");
OpenPOWER on IntegriCloud