summaryrefslogtreecommitdiff
path: root/test/files/neg/stmt-expr-discard.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-9847 Nuance pure expr statement warningSom Snytt2016-07-081-2/+2
| | | | | | | | | | Clarify the current warning, which means that an expression split over multiple lines may not be parsed as naively expected. When typing a block, attempt minor nuance. For instance, a single expression is not in need of parens. Try to avoid duplicate warnings for expressions that were adapted away from result position.
* Made -Xfatal-warnings less immediately fatal.Paul Phillips2012-08-101-3/+5
| | | | | | | Instead of changing warnings to errors mid-stream, at the end of a run I check for condition "no errors, some warnings, and fatal warnings" and then generate an error at that point. This is necessary to test for some warnings which come from later stages.
* Offer warning when demonstrably non-side-effect...Paul Phillips2011-09-051-0/+7
Offer warning when demonstrably non-side-effecting expressions appear in statement position, which should be unintentional by definition. Threw in removal of six places with useless discarded expressions which the warning informed me about. No review.