https://gcc.gnu.org/g:4a43fb1898c367f6aaf42b644a8b5fc5fdab8f64
commit 4a43fb1898c367f6aaf42b644a8b5fc5fdab8f64 Author: Alexandre Oliva <[email protected]> Date: Fri Jan 16 19:22:52 2026 -0300 testsuite: enable use of cxa_atexit on module pr98893 test Targets that don't have -fuse-cxa-atexit enabled by default don't get the expected __tcf_ZL1b symbol. Require and enable the use of cxa_atexit. for gcc/testsuite/ChangeLog * g++.dg/modules/pr98893_b.C: Require and enable cxa_atexit. Diff: --- gcc/testsuite/g++.dg/modules/pr98893_b.C | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/testsuite/g++.dg/modules/pr98893_b.C b/gcc/testsuite/g++.dg/modules/pr98893_b.C index 692eafb0afdc..386e58724dee 100644 --- a/gcc/testsuite/g++.dg/modules/pr98893_b.C +++ b/gcc/testsuite/g++.dg/modules/pr98893_b.C @@ -1,4 +1,6 @@ // { dg-additional-options "-fmodules" } +// { dg-require-effective-target cxa_atexit } +// { dg-additional-options "-fuse-cxa-atexit" } import "pr98893_a.H"; static S b[1];
