comparison gcc/testsuite/gcc.dg/atomic-param.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 /* Test __atomic routines for invalid memory model errors. This only needs
2 to be tested on a single size. */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target sync_int_long } */
5
6 int i;
7
8 int
9 main ()
10 {
11
12 __atomic_exchange_n (&i, 1); /* { dg-error "too few arguments" } */
13 __atomic_exchange_n (&i, 1, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); /* { dg-error "too many arguments" } */
14 }