NAME stats with negative values
PROG BEGIN { @=stats(-10); @=stats(-5); @=stats(5); exit() }
EXPECT ^@:\scount\s3,\saverage\s-3+,\stotal\s-10$
TIMEOUT 5

NAME avg with negative values
PROG BEGIN { @=avg(-30); @=avg(-10); exit(); }
EXPECT ^@:\s-20$
TIMEOUT 5

NAME negative map value
PROG BEGIN { @ = -11; exit(); }
EXPECT @: -11$
TIMEOUT 1

NAME sum negative maps
PROG BEGIN { @ = -11; @+=@; exit() }
EXPECT @: -22$
TIMEOUT 1

NAME Comparison should print as 0 or 1
PROG struct x { uint64_t x; }; BEGIN { $a = (*(struct x*)0).x; printf("%d %d\n", $a > -1, $a < 1); exit(); }
EXPECT ^0 1$
TIMEOUT 1

NAME sum with negative value
PROG BEGIN { @=sum(10); @=sum(-20); exit(); }
EXPECT ^@: -10$
TIMEOUT 1

NAME mixed values
PROG BEGIN { printf("%d %d %d %d\n", (int8) -10, -5555, (int16)-123, 100); exit(); }
EXPECT ^-10 -5555 -123 100$
TIMEOUT 5
