mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
21 lines
234 B
C
21 lines
234 B
C
|
/* C99 inline */
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
inline static int f(int x, ...)
|
||
|
{
|
||
|
return x * 2;
|
||
|
}
|
||
|
|
||
|
extern inline int g(int x);
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
return f(g(7)) == 42 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||
|
}
|
||
|
|
||
|
int g(int x)
|
||
|
{
|
||
|
return x * 3;
|
||
|
}
|