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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [atomic-lockfree-aux.c] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

/* Test supply a __atomic_is_lock_free routine for lock-free tests.  */
/* Just compile it on its own.  */
/* { dg-do compile } */
/* { dg-options "-w" } */
 
/* Test that __atomic_{is,always}_lock_free builtins execute.  */
 
#include <stdlib.h>
 
/* Supply a builtin external function which returns a non-standard value so
   it can be detected that it was called.  */
int 
__atomic_is_lock_free (size_t s, void *p)
{
  return 2;
}
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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