diff options
| author | Gabor Horvath <xazax.hun@gmail.com> | 2019-08-09 18:58:09 +0000 |
|---|---|---|
| committer | Gabor Horvath <xazax.hun@gmail.com> | 2019-08-09 18:58:09 +0000 |
| commit | fd85c894eb6889f2a1d1a175fc7d89e91ae1c9e1 (patch) | |
| tree | 1b185e900aae750111e66501a35a247fbeb01745 /clang/test/Sema | |
| parent | 3653aeeffa199dd4c22e38424ea5cdfb4aa01349 (diff) | |
| download | bcm5719-llvm-fd85c894eb6889f2a1d1a175fc7d89e91ae1c9e1.tar.gz bcm5719-llvm-fd85c894eb6889f2a1d1a175fc7d89e91ae1c9e1.zip | |
Revert Fix a build bot failure and multiple warnings instances for range base for loops
This reverts r368459 (git commit 2bf522aea62e4fb653cacb68072167d25149099e)
llvm-svn: 368462
Diffstat (limited to 'clang/test/Sema')
| -rw-r--r-- | clang/test/Sema/warn-lifetime-analysis-nocfg.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp b/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp index eaddb74e5a3..efa54fe662b 100644 --- a/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp +++ b/clang/test/Sema/warn-lifetime-analysis-nocfg.cpp @@ -201,13 +201,6 @@ void danglingReferenceFromTempOwner() { std::vector<int> getTempVec(); std::optional<std::vector<int>> getTempOptVec(); -void testLoops() { - for (auto i : getTempVec()) // ok - ; - for (auto i : *getTempOptVec()) // expected-warning {{object backing the pointer will be destroyed at the end of the full-expression}} - ; -} - int &usedToBeFalsePositive(std::vector<int> &v) { std::vector<int>::iterator it = v.begin(); int& value = *it; |

