Blame test-t/n_13.t

Packit Service 8bf002
/* n_13.t:  Valid operators in #if expression.  */
Packit Service 8bf002
Packit Service 8bf002
/* Valid operators are (precedence in this order) :
Packit Service 8bf002
    defined, (unary)+, (unary)-, ~, !,
Packit Service 8bf002
    *, /, %,
Packit Service 8bf002
    +, -,
Packit Service 8bf002
    <<, >>,
Packit Service 8bf002
    <, >, <=, >=,
Packit Service 8bf002
    ==, !=,
Packit Service 8bf002
    &,
Packit Service 8bf002
    ^,
Packit Service 8bf002
    |,
Packit Service 8bf002
    &&,
Packit Service 8bf002
    ||,
Packit Service 8bf002
    ? :
Packit Service 8bf002
 */
Packit Service 8bf002
Packit Service 8bf002
/* 13.1:    Bit shift.  */
Packit Service 8bf002
#if     1 << 2 != 4 || 8 >> 1 != 4
Packit Service 8bf002
    Bad arithmetic of <<, >> operators.
Packit Service 8bf002
#endif
Packit Service 8bf002
Packit Service 8bf002
/* 13.2:    Bitwise operators.  */
Packit Service 8bf002
#if     (3 ^ 5) != 6 || (3 | 5) != 7 || (3 & 5) != 1
Packit Service 8bf002
    Bad arithmetic of ^, |, & operators.
Packit Service 8bf002
#endif
Packit Service 8bf002
Packit Service 8bf002
/* 13.3:    Result of ||, && operators is either of 1 or 0. */
Packit Service 8bf002
#if     (2 || 3) != 1 || (2 && 3) != 1 || (0 || 4) != 1 || (0 && 5) != 0
Packit Service 8bf002
    Bad arithmetic of ||, && operators.
Packit Service 8bf002
#endif
Packit Service 8bf002
Packit Service 8bf002
/* 13.4:    ?, : operator.  */
Packit Service 8bf002
#if     (0 ? 1 : 2) != 2
Packit Service 8bf002
    Bad arithmetic of ?: operator.
Packit Service 8bf002
#endif
Packit Service 8bf002