Re: sparse-llvm incorrect handling of function pointers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 10, 2017 at 06:13:16PM +0000, Dibyendu Majumdar wrote:
> Yes, here is an amended test.
> 
> static int testfunc(int i) {
>  return i-6;
> }
> static int (*f) (int) = testfunc;
> int main(int argc, const char *argv[]) {
>  if (f) {
>   return f(6);
>  }
>  else {
>   return 1;
>  }
> }

This one is because of the static initialization.

> I am creating a bunch of tests that can be run after compiling.

Excellent, they are really needed.

> The current backend tests are not very useful as they do not actually run
> or validate the results.

Yes, indeed.

-- Luc Van Oostenryck
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux