This is an archive of the discontinued LLVM Phabricator instance.

Add some overlooked optnone tests, and tighten up an existing test
ClosedPublic

Authored by probinson on Dec 21 2015, 4:48 PM.

Details

Summary

Found some tests we wrote back in the day, but which never made it upstream.

optnone-and-attributes.cpp is a more thorough exercise of optnone attribute interaction than we have currently.

I'm not entirely sure about the value of optnone-class-members.cpp and optnone-templates.cpp as these would seem to be really exercising the main attribute handling in the context of classes, inheritance, and template instantiation; not really that specific to optnone, but it's hard to tell whether general attribute handling tests cover these situations. I'm happy to contribute them, or throw them away.

The tweak to optnone-def-decl.cpp just makes that last CHECK do what we actually meant it to.

Diff Detail

Repository
rL LLVM

Event Timeline

probinson updated this revision to Diff 43416.Dec 21 2015, 4:48 PM
probinson retitled this revision from to Add some overlooked optnone tests, and tighten up an existing test.
probinson updated this object.
probinson added a reviewer: aaron.ballman.
probinson added a subscriber: cfe-commits.
aaron.ballman accepted this revision.Dec 27 2015, 8:17 AM
aaron.ballman edited edge metadata.

LGTM! Thank you for these; I think the optnon-class-members.cpp and optnon-templates.cpp have value, so I would say to keep them.

This revision is now accepted and ready to land.Dec 27 2015, 8:17 AM
This revision was automatically updated to reflect the committed changes.