diff options
author | Florian Westphal <fw@strlen.de> | 2023-12-04 18:30:51 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-12-05 12:43:21 +0100 |
commit | 45a4d4434742b425d019623812f2cce293033cdf (patch) | |
tree | ac7fab2588615e8ea5b0ab7acaffa0142fa28cbe /tests/shell/testcases/bogons/nft-f | |
parent | 3671c48970031e617ee713b79caf8ef0a1b096c2 (diff) |
evaluate: error out if basetypes are different
prefer
binop_with_different_basetype_assert:3:29-35: Error: Binary operation (<<) with different base types (string vs integer) is not supported
oifname set ip9dscp << 26 | 0x10
^^^^^^^~~~~~~
to assertion failure.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/bogons/nft-f')
-rw-r--r-- | tests/shell/testcases/bogons/nft-f/binop_with_different_basetype_assert | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/shell/testcases/bogons/nft-f/binop_with_different_basetype_assert b/tests/shell/testcases/bogons/nft-f/binop_with_different_basetype_assert new file mode 100644 index 00000000..e8436008 --- /dev/null +++ b/tests/shell/testcases/bogons/nft-f/binop_with_different_basetype_assert @@ -0,0 +1,5 @@ +table ip t { + chain c { + oifname set ip9dscp << 26 | 0x10 + } +} |