xref: /illumos-gate/usr/src/tools/smatch/src/validation/extern-inline.c (revision e82490700e19f1b8a2cef6102f4726144d281988)
1 extern __inline__ int f(int);
2 
3 extern __inline__ int
4 f(int x)
5 {
6         return x;
7 }
8 
9 extern int g(int);
10 
11 extern __inline__ int
12 g(int x)
13 {
14         return x;
15 }
16 
17 
18 /*
19  * check-name: extern inline function
20  * check-command: sparse $file $file
21  * check-description: Extern inline function never emits stand alone copy
22  * of the function. It allows multiple such definitions in different file.
23  */
24