summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/TestCases/use-after-scope-capture.cc
Commit message (Collapse)AuthorAgeFilesLines
* compiler-rt: Rename cc files below test/asan to cppNico Weber2019-08-051-17/+0
| | | | | | See r367803 and similar other changes. llvm-svn: 367887
* Try to fix more Windows portability issues in sanitizer testsReid Kleckner2016-07-221-1/+1
| | | | | | | | | | | | | | Add a %stdcxx11 lit substitution for -std=c++11. Windows defaults to -std=c++14 when VS 2015 is used because the STL requires it. Harcoding -std=c++11 in the ASan tests actually downgrades the C++ standard level, leading to test failures. Relax a FileCheck pattern in use-after-scope-types.cc. Disable the sanitizer_common OOM tests. They fail on bots with low swap, and cause other concurrently running tests to OOM. llvm-svn: 276454
* [asan] revert to using -std=c++11 on ↵Kostya Serebryany2016-07-221-1/+1
| | | | | | test/asan/TestCases/use-after-scope-capture.cc to fix Linux failures after r276332. This probably breaks the windows build, sorry, but returns to the earlier status quo. llvm-svn: 276379
* [asan] Fix Win64 test portability issuesReid Kleckner2016-07-211-1/+1
| | | | | | | | | | | | | The OOM test should really only run on 32-bits, since it's hard to OOM on x64. The operator_array_new_with_dtor_left_oob tests need to account for the larger array cookie on x64 (8 bytes instead of 4). Use -std=c++14 in use-after-scope-capture.cc to avoid errors in the MSVC 2015 STL on Windows. The default there is C++14 anyway. llvm-svn: 276332
* Replace -mllvm -asan-use-after-scope=1 with -fsanitize-address-use-after-scopeVitaly Buka2016-07-141-1/+1
| | | | | | | | | | | | | | Summary: When test was added we had no -fsanitize-address-use-after-scope in clang so we had to use -mllvm -asan-use-after-scope=1. Reviewers: eugenis Subscribers: kubabrecka Differential Revision: https://reviews.llvm.org/D22382 llvm-svn: 275475
* Relax stack check as on some platforms demanglers failVitaly Buka2016-05-021-1/+1
| | | | | | | | | | | | | | Summary: On Windows (already fixed) and FreeBSD we have stacks traces without operator(). Reviewers: eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D19427 llvm-svn: 268332
* Un-XFAIL tests on Windows after fixing PR27492Reid Kleckner2016-04-271-2/+1
| | | | | | | Private symbols in PDBs do not have parameter types in their names so we have to drop the parens from the lambda call operator. llvm-svn: 267735
* [asan] Disable one test on windows.Evgeniy Stepanov2016-04-221-0/+1
| | | | | | Patch by Vitaly Buka. llvm-svn: 267088
* Enable stack-use-after-scope tests.Evgeniy Stepanov2016-04-221-5/+8
| | | | | | | | | | | Fix and enable working stack-use-after-scope tests. Add more failing tests for the feature, for fix later. PR27453. Patch by Vitaly Buka. llvm-svn: 267084
* Additional test for use-after-scopeKostya Serebryany2016-04-181-0/+14
Summary: Test that asan detects access to the dead variable captured by lambda. Reviewers: aizatsky, kcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D19238 llvm-svn: 266676
OpenPOWER on IntegriCloud