c++: Add test for fixed PR [PR102338]

This was fixed by r12-6025 and is sufficiently different from
noexcept71.C that I think we should add it.

	PR c++/102338

gcc/testsuite/ChangeLog:

	* g++.dg/cpp1y/noexcept2.C: New test.
1 file changed