diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/variadic91.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/variadic91.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic91.C b/gcc/testsuite/g++.dg/cpp0x/variadic91.C new file mode 100644 index 000000000..d78b791fb --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic91.C @@ -0,0 +1,17 @@ +// { dg-options "-std=c++0x" } +template<int N> struct Int2Type { }; + +template<typename... T> +struct Outer { + template<typename... U> + void foo(Int2Type<sizeof...(T)>, Int2Type<sizeof...(U)>); +}; + + +Outer<short, int, long> outer; + +void g4() { + outer.foo<float, double>(Int2Type<3>(), Int2Type<2>()); +} + +template<typename... T, template<T...> class X> void f1(); |