| 1 |
/* This idiom was found in Daikon and forces us to handle assignments |
| 2 |
* in conditional mode, such as in the condition of an assert statement. */ |
| 3 |
|
| 4 |
public class AssertWithSideEffect { |
| 5 |
void CheckAssert() { |
| 6 |
boolean assert_enabled = false; |
| 7 |
assert (assert_enabled = true); |
| 8 |
} |
| 9 |
} |