OSDN Git Service

2008-03-01 Douglas Gregor <doug.gregor@gmail.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / variadic-ex10.C
1 // { dg-options "-std=gnu++0x" }
2 template<typename... Types> struct Tuple { };
3
4 Tuple<> t0; // Types contains no arguments
5 Tuple<int> t1; // Types contains one argument: int
6 Tuple<int, float> t2; // Types contains two arguments: int and float
7 Tuple<0> error; // { dg-error "mismatch" }
8 // { dg-error "expected a type" "" { target *-*-* } 7 }
9 // { dg-error "in declaration" "" { target *-*-* } 7 }