xref: /aosp_15_r20/external/ltp/scripts/coccinelle/libltp-test-macro-vars.cocci (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1// SPDX-License-Identifier: GPL-2.0-or-later
2// Copyright (c) 2021 SUSE LLC  <[email protected]>
3
4// Find violations of LTP-002
5@ find_use exists @
6expression E;
7@@
8
9(
10* TST_ERR
11|
12* TST_RET
13|
14* TTERRNO | E
15)
16