On 28 May 2015 04:15, "Mike via D.gnu" wrote:
>
> Consider this code
>
> testInline.d
>
> module testInline;
>
> import gcc.attribute;
>
> public enum inline = gcc.attribute.attribute("forceinline");
>
> @inline int add(int a, int b)
> {
> return a + b;
> }
>
> test.d
> **
> i
On Thu, 28 May 2015 02:12:10 +, Mike wrote:
> Shouldn't it be able to inline the "add" function since the source code
> is there in the testInline.d file? Should I file a bug?
actually, the code is not available, as ".d" file is treated like ".di"
file here, i.e. file with only interface de