diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-unify-2.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-unify-2.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-unify-2.C b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-unify-2.C new file mode 100644 index 0000000..0a7acba --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-unify-2.C @@ -0,0 +1,13 @@ +// Contributed by Dodji Seketeli <dodji@redhat.com> +// Origin: PR c++/40155 +// { dg-do compile { target c++11 } } + +template <typename T> struct identity +{ typedef T type; }; + +template <typename RT, typename... A> +int forward_call(RT (*) (A...), typename identity<A>::type...); + +int g (double); + +int i = forward_call(&g, 0); |