]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Run array54.C only for sync_int_long targets
authorDimitar Dimitrov <dimitar@dinux.eu>
Tue, 6 Aug 2024 18:47:24 +0000 (21:47 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Sun, 25 Aug 2024 17:11:59 +0000 (20:11 +0300)
commitb21d64742e9cffafeb7c4c2b131bf622aaf38dbe
tree267a106e58b37040aeebe7c3feaf31f4ccafe1a6
parentc9ccc3961f5b8d333f5081b377cd9ee9e33079f7
testsuite: Run array54.C only for sync_int_long targets

The test case uses "atomic<int>", which fails to link on
pru-unknown-elf target due to missing __atomic_load_4 symbol.

Fix by filtering for sync_int_long effective target.  Ensured that the
test still passes for x86_64-pc-linux-gnu.

gcc/testsuite/ChangeLog:

* g++.dg/init/array54.C: Require sync_int_long effective target.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/g++.dg/init/array54.C