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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [inline-16.c] - Rev 298

Compare with Previous | Blame | View Log

/* { dg-do link } */
/* { dg-options "-std=c99" } */
 
static inline __SIZE_TYPE__
func1(const volatile void * base, __SIZE_TYPE__ byteOffset)
{
  volatile __SIZE_TYPE__ *addr
    = (volatile __SIZE_TYPE__ *)((__SIZE_TYPE__)base + byteOffset);
  return *addr;
}
 
static inline __SIZE_TYPE__
func2(__SIZE_TYPE__ data)
{
    return func1(&data, 0);
}
 
int main(int argc, char *argv[]) {
  __SIZE_TYPE__ b = func2(argc);
 
  return 0;
}
 

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.