From: Jonathan Wakely Date: Wed, 28 Apr 2021 17:14:05 +0000 (+0100) Subject: libstdc++: Add testcase for std::pair as a structural type [PR 97930] X-Git-Tag: basepoints/gcc-13~8088 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8767ee9f9355a63bfeb8318df32bc39c5b0f3ad;p=thirdparty%2Fgcc.git libstdc++: Add testcase for std::pair as a structural type [PR 97930] This PR was fixed by r12-221-ge1543e694dadf1ea70eb72325219bc0cdc914a35 (for compilers that support C++20 Concepts) so this adds the testcase. libstdc++-v3/ChangeLog: PR libstdc++/97930 * testsuite/20_util/pair/requirements/structural.cc: New test. --- diff --git a/libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc b/libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc new file mode 100644 index 000000000000..d4df20197eef --- /dev/null +++ b/libstdc++-v3/testsuite/20_util/pair/requirements/structural.cc @@ -0,0 +1,9 @@ +// { dg-options "-std=gnu++20" } +// { dg-do compile { target c++20 } } + +#include + +// C++20 20.4.2 [pairs.pair] +// pair is a structural type (13.2) if T and U are both structural types. + +template> struct S; // PR libstdc++/97930