diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/variadic37.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/variadic37.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic37.C b/gcc/testsuite/g++.dg/cpp0x/variadic37.C new file mode 100644 index 000000000..a6e5f613f --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic37.C @@ -0,0 +1,10 @@ +// { dg-options "-std=gnu++0x" } +template<typename... Values> +struct tuple +{ + static const __SIZE_TYPE__ length = sizeof...(Values); +}; + +int a0[tuple<>::length == 0? 1 : -1]; +int a1[tuple<int>::length == 1? 1 : -1]; +int a2[tuple<int, float>::length == 2? 1 : -1]; |