aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/g++.dg/cpp0x/variadic100.C
blob: a364bbc911689d239a49723fb464806c7d7e4aca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/43143
// { dg-options "-std=c++0x" }

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
}