OSDN Git Service

PR c++/44157
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / variadic86.C
1 // PR c++/33943
2 // { dg-do compile }
3 // { dg-options "-std=c++0x" }
4
5 template<typename... A> struct foo {};
6
7 template<typename A0, typename... A1> struct bar {};
8
9 template<typename U> struct baz;
10
11 template<template<typename...> class T, typename... U> struct baz< T<U...> >
12 {};
13
14 template<template<typename, typename...> class T, typename U, typename... V>
15 struct baz< T<U, V...> >
16 {};
17
18 baz< foo<int, short> > b1;
19 baz< bar<int, short> > b2;