mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00

Fixes https://github.com/dlang/dmd/issues/21267 `__forceinline` is the same as `__attribute__((always_inline))`, so `#define` it to be the same.
4 lines
152 B
C
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); }
|