mirror of
https://github.com/dlang/dmd.git
synced 2025-04-25 12:40:11 +03:00
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.
This commit is contained in:
parent
0845912f27
commit
dfe501dde6
2 changed files with 5 additions and 1 deletions
4
compiler/test/compilable/test21267.c
Normal file
4
compiler/test/compilable/test21267.c
Normal file
|
@ -0,0 +1,4 @@
|
|||
// https://github.com/dlang/dmd/issues/21267
|
||||
static inline __forceinline int square(int x) { return x * x; }
|
||||
|
||||
int doSquare(int x) { return square(x); }
|
|
@ -56,7 +56,7 @@
|
|||
*/
|
||||
#define __fastcall
|
||||
|
||||
#define __forceinline
|
||||
#define __forceinline __attribute__((always_inline))
|
||||
#undef _Check_return_
|
||||
//#define _Check_return_
|
||||
#define __pragma(x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue