tests: check exponent VS. unary minus priority

This commit is contained in:
Bruno BELANYI 2020-11-08 19:04:21 +01:00
parent 399150be15
commit f41a6aa1ea
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ SUCCESS(ternary_associativity, 1 == 1 ? 1 : 0 == 0 ? 2 : 3)
// Other operators
Test(eval_string, power) { do_success("4 ** 3 ** 2", 262144); }
Test(eval_string, power_explicit) { do_success("4 ** (3 ** 2)", 262144); }
Test(eval_string, power_priority) { do_success("- 2 ** 2", -4); }
#pragma GCC diagnostic pop
#define FAILURE(Name, Input) \