Since the test uses __sync_fetch_and_add, add a requirement for
target to support atomic operations on int and long types.
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:
* g++.dg/lto/pr47333_0.C: Require target that supports atomic
operations on int and long types.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
+/* { dg-require-effective-target sync_int_long } */
/* "WARNING: lto.exp does not support dg-additional-options" */
#pragma GCC diagnostic ignored "-Wtemplate-body"