testsuite: Add C++ unwinding tests with Decimal Floating-Point
authorChristophe Lyon <christophe.lyon@arm.com>
Tue, 3 May 2022 16:14:25 +0000 (17:14 +0100)
committerChristophe Lyon <christophe.lyon@arm.com>
Fri, 20 May 2022 07:35:41 +0000 (09:35 +0200)
commit46c6976da146fbd52c088c1530f25e8b8f56c648
treee86f33c09404d26979a40e77128879b4f77968fe
parent096eaeac38fa4acc50a4784f3242db5ae8a08262
testsuite: Add C++ unwinding tests with Decimal Floating-Point

These tests exercise exception handling with Decimal Floating-Point
type.

dfp-1.C and dfp-2.C check that thrown objects of such types are
properly caught, whether when using C++ classes (decimalXX) or via GCC
mode attributes.

dfp-saves-aarch64.C checks that such objects are properly restored,
and has to use the mode attribute trick because objects of decimalXX
class type cannot be assigned to a register variable.

2022-05-03  Christophe Lyon  <christophe.lyon@arm.com>

gcc/testsuite/
* g++.dg/eh/dfp-1.C: New test.
* g++.dg/eh/dfp-2.C: New test.
* g++.dg/eh/dfp-saves-aarch64.C: New test.
gcc/testsuite/g++.dg/eh/dfp-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/eh/dfp-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/eh/dfp-saves-aarch64.C [new file with mode: 0644]