aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic100.C
blob: 502601f87415b23d43f0dea0c34463ba7310b93a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/43143
// { dg-do compile { target c++11 } }

template<typename T>
T&& declval();

template<class T, class... Args>
void test() {
  T t(declval<Args>()...);
}

int main() {
  test<const int>(); // OK
  test<int[23]>(); // Error
}