blob: 007f39bef86ea19f5fd2d652d883b582c2fde543 [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=21378
version(all)
enum do_inline = true;
pragma(inline, do_inline)
void stuff(){}
void stuff2()
{
pragma(inline, do_inline);
}
pragma(inline, canInline(1))
void stuff3(){}
void stuff4()
{
pragma(inline, canInline(1));
}
void main()
{
stuff();
stuff2();
stuff3();
stuff4();
}
int canInline(int x)
{
return x*x;
}