This is an archive of the discontinued LLVM Phabricator instance.

Verify no result unused warning on macro expansion
AbandonedPublic

Authored by modocache on Aug 14 2015, 7:46 PM.

Details

Reviewers
None
Summary

Depends on http://reviews.llvm.org/D12047.

Add a unit test which demonstrates the bug reported in
https://llvm.org/bugs/show_bug.cgi?id=24404.

If the macro is enclosed within parentheses, the warning is reported as
expected. Without parentheses, no warning is emitted--this is a bug.

Diff Detail

Event Timeline

modocache updated this revision to Diff 32214.Aug 14 2015, 7:46 PM
modocache retitled this revision from to Verify no result unused warning on macro expansion.
modocache updated this object.
modocache added a reviewer: cfe-commits.
modocache added a subscriber: cfe-commits.
modocache abandoned this revision.Oct 2 2016, 5:07 PM