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
main()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 }
15