]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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)
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

index 5241e451d6d9a29a1aa12307a95cfb15a472b3d7..d664b57698492672d3f88d5db667e98f9ffbc921 100644 (file)
@@ -1,6 +1,7 @@
 // PR c++/90947
 // { dg-do run { target c++11 } }
 // { dg-require-effective-target thread_fence }
+// { dg-require-effective-target sync_int_long }
 
 #include <atomic>