summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/decltype32.C
blob: 66731cc947dbc50741ae0c2278e03ddde7a4ac8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/50075
// { dg-options -std=c++0x }

template <typename T>
auto make_array(const T& il) ->	// { dg-error "not declared" }
decltype(make_array(il))
{ }

int main()
{
  int z = make_array(1);	// { dg-error "no match" }
}