dmd/compiler/test/compilable/test21267.c
drpriver dfe501dde6 Fix #21267: ImportC: __forceinline ignored
Fixes https://github.com/dlang/dmd/issues/21267

`__forceinline` is the same as `__attribute__((always_inline))`,
so `#define` it to be the same.
2025-04-19 17:09:14 +08:00

4 lines
152 B
C

// https://github.com/dlang/dmd/issues/21267
static inline __forceinline int square(int x) { return x * x; }
int doSquare(int x) { return square(x); }