diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/atomic-invalid.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/atomic-invalid.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/atomic-invalid.c b/gcc/testsuite/gcc.dg/atomic-invalid.c index 48de91f6c75..4d040e1d572 100644 --- a/gcc/testsuite/gcc.dg/atomic-invalid.c +++ b/gcc/testsuite/gcc.dg/atomic-invalid.c @@ -10,6 +10,7 @@ int i, e, b; size_t s; bool x; +int main () { __atomic_compare_exchange_n (&i, &e, 1, 0, __ATOMIC_RELAXED, __ATOMIC_SEQ_CST); /* { dg-error "failure memory model cannot be stronger" } */ |