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 main()8main () 9 { 10 11 __atomic_exchange_n (&i, 1); /* { dg-error "too few arguments" } */ 12 __atomic_exchange_n (&i, 1, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); /* { dg-error "too many arguments" } */ 13 } 14