[test] check strictest attributes possible for InferFunctionAttrs test
authorAugie Fackler <augie@google.com>
Thu, 3 Feb 2022 16:39:15 +0000 (08:39 -0800)
committerPhilip Reames <listmail@philipreames.com>
Thu, 3 Feb 2022 16:39:15 +0000 (08:39 -0800)
commit6cda6d2f61a61779c5c8680d19d4d5bfe773ab41
tree6c16a6e14e6a74ed11e0cc896523659de1caeff3
parentaade28ea70f5af563af20380a2a0df4166581a53
[test] check strictest attributes possible for InferFunctionAttrs test

This appears to have all the same attributes as many other functions
in this file, and I think the use of INACCESSIBLEMEMONLY_NOFREE_NOUNWIND
instead of INACCESSIBLEMEMONLY_NOFREE_NOUNWIND_WILLRETURN was an
oversight that meant aligned_alloc's attributes were just going
unchecked. This patch corrects the test defect and now the attributes
inferred on aligned_alloc are actually validated, and the test still
passes.

Differential Revision: https://reviews.llvm.org/D117922
llvm/test/Transforms/InferFunctionAttrs/annotate.ll