-check t failing when using -noinl
When compiling
noinline
int[*] reshape( int[.] shp, int[*] a)
{
return _reshape_VxA_ (shp, a);
}
int main () {
return reshape([], [1]);
}
with sac2c -check t -noprelude
using
sac2c -V
sac2c 1.3.3-MijasCosta-1051-gfe22
build-type: RELEASE
built-by: "sbs" at 2023-02-26T08:05:58
the resulting executable returns:
*** SAC runtime error
*** Assignment with incompatible types found!