diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2025-08-09 08:26:13 +0300 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2025-08-09 13:25:08 +0300 |
commit | fe837dc02bbf80f6907ed8c1065fe12688b8ea95 (patch) | |
tree | d00d829def08f4c0d91e59ba0ed25c8648fd1a31 /gcc | |
parent | ffc867844c989c16815580ce243296bfdcec8590 (diff) | |
download | gcc-fe837dc02bbf80f6907ed8c1065fe12688b8ea95.zip gcc-fe837dc02bbf80f6907ed8c1065fe12688b8ea95.tar.gz gcc-fe837dc02bbf80f6907ed8c1065fe12688b8ea95.tar.bz2 |
testsuite: Require atomic operations for hardbool-ai.c
The test uses _Atomic int type, so add a filter to ensure the target
supports it.
This fixes a spurious test failure on pru-unknown-elf, which lacks
atomic ops. The test still passes on x86_64-linux-gnu.
gcc/testsuite/ChangeLog:
* gcc.dg/torture/hardbool-ai.c: Require target that supports
atomic operations on int types.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/hardbool-ai.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/hardbool-ai.c b/gcc/testsuite/gcc.dg/torture/hardbool-ai.c index 97569a6..af4e0e1 100644 --- a/gcc/testsuite/gcc.dg/torture/hardbool-ai.c +++ b/gcc/testsuite/gcc.dg/torture/hardbool-ai.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-require-effective-target sync_int_long } */ #define basetype _Atomic int |