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] - Blame information for rev 328

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do link } */
2
/* { dg-options "-std=c99" } */
3
 
4
static inline __SIZE_TYPE__
5
func1(const volatile void * base, __SIZE_TYPE__ byteOffset)
6
{
7
  volatile __SIZE_TYPE__ *addr
8
    = (volatile __SIZE_TYPE__ *)((__SIZE_TYPE__)base + byteOffset);
9
  return *addr;
10
}
11
 
12
static inline __SIZE_TYPE__
13
func2(__SIZE_TYPE__ data)
14
{
15
    return func1(&data, 0);
16
}
17
 
18
int main(int argc, char *argv[]) {
19
  __SIZE_TYPE__ b = func2(argc);
20
 
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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