The _ZZZ1fB7__test1vEN1T1gEvE1x symbol is only output with the ABI tag
when cxa_atexit is available for use. On targets that default to
-fno-use-cxa-atexit, the test fails gratuitously. Add an explicit
-fuse-cxa-atexit, along with a requirement for cxa_atexit support.
for gcc/testsuite/ChangeLog
* g++.dg/abi/abi-tag18a.C: Require and enable cxa_atexit.
// { dg-skip-if "PR 70349" { hppa*-*-hpux* } }
// { dg-options "-fabi-version=9 -fno-implicit-constexpr" }
+// { dg-require-effective-target cxa_atexit }
+// { dg-additional-options "-fuse-cxa-atexit" }
// { dg-final { scan-assembler "_Z1fB7__test1v" } }
// { dg-final { scan-assembler "_ZZ1fB7__test1vEN1T1gB7__test2Ev" } }
// { dg-final { scan-assembler "_ZZZ1fB7__test1vEN1T1gEvE1x" } }