no_effect: add some more tests
commit4dda1a3e0b9c366db502961f75e2e2752f1909a3
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 Sep 2011 11:33:14 +0000 (22 14:33 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 Sep 2011 11:33:14 +0000 (22 14:33 +0300)
tree395881a0f98f2588e23f953fb52ee941762182d5
parenta43a93e8892dfc4e2481f647ff2eef815ca06c14
no_effect: add some more tests

This test is sort of pointless since it duplicates functionality from gcc.
But I already wrote it, so I'm going to commit it.

What happened is that someone submitted a patch with a bug like this so I
assumed that gcc didn't catch it.  But then I didn't find any similar bugs
in the kernel, and I investigated some more and it turns that that the
submitter just ignored the warning or was using an old version of gcc or
something.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_no_effect.c