diff options
author | Patrick Palka <ppalka@redhat.com> | 2021-10-11 12:33:30 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2021-10-11 12:33:30 -0400 |
commit | 0de8c2f8104b74f46e63d0d5d7b9e8fd3f04bb98 (patch) | |
tree | 6eca5539857d1c771088d604bd7e1784daee028c /gcc | |
parent | 1c0a83eff7bb5b1db997a9726ae6542aec893baa (diff) | |
download | gcc-0de8c2f8104b74f46e63d0d5d7b9e8fd3f04bb98.zip gcc-0de8c2f8104b74f46e63d0d5d7b9e8fd3f04bb98.tar.gz gcc-0de8c2f8104b74f46e63d0d5d7b9e8fd3f04bb98.tar.bz2 |
c++: Add testcase for already-fixed PR [PR102643]
Fixed with r12-1744.
PR c++/102643
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/class-deduction-alias11.C: New test.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp2a/class-deduction-alias11.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias11.C b/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias11.C new file mode 100644 index 0000000..87eb3e6 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp2a/class-deduction-alias11.C @@ -0,0 +1,12 @@ +// PR c++/102643 +// { dg-do compile { target c++20 } } + +template<class _Tp, class> +struct vector { + typedef int allocator_type; + vector(_Tp, allocator_type = allocator_type()); +}; + +template<class T> using vector_mm = vector<T, int>; + +vector_mm v(0); |