OSDN Git Service

2008-03-01 Douglas Gregor <doug.gregor@gmail.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / variadic2.C
1 // { dg-options "-std=gnu++0x" }
2 template<typename... Args = int> // { dg-error "default argument" }
3 class tuple2;
4
5 template<typename... = int> // { dg-error "default argument" }
6 class tuple3;
7
8 template<typename T1, typename T2, typename... Rest>
9 struct two_or_more {}; // { dg-error "provided for" }
10
11 typedef two_or_more<int> bad; // { dg-error "2 or more" }
12 // { dg-error "invalid type" "" { target *-*-* } 11 }
13
14 void f()
15 {
16   two_or_more<int, float> z = 5; // { dg-error "two_or_more<int, float>" }
17 }