analyzer: add testcase of using closed fd without warning.
authorImmad Mir <mirimmad@outlook.com>
Wed, 6 Jul 2022 16:08:27 +0000 (21:38 +0530)
committerImmad Mir <mirimmad@outlook.com>
Wed, 6 Jul 2022 16:08:41 +0000 (21:38 +0530)
commitacb696b792eeab92167f516b5236ed9242e62deb
treeb2effa75b87708b06eb557dbc339ed73f4396a4b
parent3a6de2b2db500d76ac141a6ef85d336bd0f8430b
analyzer: add testcase of using closed fd without warning.

This patch adds a testcase for passing a closed fd to a function
that does not emit any warning.

gcc/testsuite/ChangeLog:
* gcc.dg/analyzer/fd-4.c: Add a new testcase to demonstrate
passsing of a closed file descriptor to a function that does
not emit any warning.

Signed-off-by: Immad Mir <mirimmad@outlook.com>
gcc/testsuite/gcc.dg/analyzer/fd-4.c