c++: Add testcase for PR98019
authorJason Merrill <jason@redhat.com>
Thu, 3 Dec 2020 18:55:51 +0000 (13:55 -0500)
committerJason Merrill <jason@redhat.com>
Thu, 3 Dec 2020 18:56:56 +0000 (13:56 -0500)
commit5ea36d20c352a3ca436aa764404f6210b090866b
treecfb2d1635b28930f259ca5121322a766dfd15912
parent4a3b9f48c3743c6737acdc93074d058c1603be2a
c++: Add testcase for PR98019

This has already been fixed on trunk, but I don't see a testcase for it.

gcc/testsuite/ChangeLog:

PR c++/98019
* g++.dg/cpp2a/concepts-nodiscard1.C: New test.
gcc/testsuite/g++.dg/cpp2a/concepts-nodiscard1.C [new file with mode: 0644]