Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / inline-16.c
blob4f9fe978baa42ad665782f1942fed2b5771b1cc4
1 /* { dg-do link } */
2 /* { dg-options "-std=c99" } */
4 static inline __SIZE_TYPE__
5 func1(const volatile void * base, __SIZE_TYPE__ byteOffset)
7 volatile __SIZE_TYPE__ *addr
8 = (volatile __SIZE_TYPE__ *)((__SIZE_TYPE__)base + byteOffset);
9 return *addr;
12 static inline __SIZE_TYPE__
13 func2(__SIZE_TYPE__ data)
15 return func1(&data, 0);
18 int main(int argc, char *argv[]) {
19 __SIZE_TYPE__ b = func2(argc);
21 return 0;