Add tests.
librustc: Whitelist linkage attribute for unused attribute lint since it's processed during trans.