mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
0b06c34dfc
No inlining is actually done but that part is not required by the standard.
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;
|
|
}
|