OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [atomic-param.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* 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
main ()
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.