Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/inline-16.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { 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 } |