Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / vt-34219-2.C
blob193bc0c6cf9a487d309f08460758456ec0beccb8
1 // { dg-options "-std=c++0x" }
2 template<template<typename... T> class Comp, typename... T> void f( T... Value)
4   static_assert( Comp<T>::value > 0, "" ); // { dg-error "parameter packs|T" }
7 template<template<typename... T> class Comp, typename... T> void g( T... Value)
9   static_assert( Comp<T...>::value > 0, "" );
12 template <typename... T>
13 struct Foo
15         static const int value=1;
18 int main()
20         f<Foo>( 2 );
21         g<Foo>( 2 );