diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/array18.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/array18.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/array18.C b/gcc/testsuite/g++.dg/template/array18.C new file mode 100644 index 000000000..b2b1e3502 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/array18.C @@ -0,0 +1,13 @@ +// PR c++/30924 + +template<typename T> +struct x {}; + +template<typename T, unsigned N> +struct x<T*[N]> {}; + +int main() { + x<int> a; + x<int*[10]> b; + return 0; +} |