Fix clang [-Wconstant-logical-operand] warning in testcase

warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
This commit is contained in:
William S Fulton 2025-04-29 22:37:46 +01:00
parent f91a9cb8e4
commit 818ea4cc74
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ struct A
// Regression test for alternative operator names - this failed to parse in
// SWIG 4.2.0 and earlier.
int g(int b = (compl 1 or not 2) xor (3 and 4) xor (3 bitand 6) xor (3 bitor 5) xor (2 + 2 not_eq 5)) { return b; }
int g(int b = (compl 1 or not 2) xor (1 and not false) xor (3 bitand 6) xor (3 bitor 5) xor (2 + 2 not_eq 5)) { return b; }
};
const unsigned char LASTCHAR1 = "hello world"[sizeof"hello world" - 2];