Both LDC and GDC inline the function. (LDC actually reduces your code to nothing, so I had to change it a bit to see if the call was really inlined.)