This is an archive of the discontinued LLVM Phabricator instance.

[ASAN] Add test to check detection of stack-use-after-scope on various types
ClosedPublic

Authored by vitalybuka on Jul 21 2016, 4:26 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

vitalybuka updated this revision to Diff 64990.Jul 21 2016, 4:26 PM
vitalybuka retitled this revision from to Add test to check detection of stack-use-after-scope on various types.
vitalybuka updated this object.
vitalybuka added reviewers: kcc, eugenis.
vitalybuka retitled this revision from Add test to check detection of stack-use-after-scope on various types to [ASAN] Add test to check detection of stack-use-after-scope on various types.Jul 21 2016, 4:27 PM
eugenis accepted this revision.Jul 21 2016, 4:38 PM
eugenis edited edge metadata.

LGTM

test/asan/TestCases/use-after-scope-types.cc
82 ↗(On Diff #64990)

maybe change the condition to if (argc == 1) to avoid the magic constant "12" meaning "run all tests".

This revision is now accepted and ready to land.Jul 21 2016, 4:38 PM
This revision was automatically updated to reflect the committed changes.