[debuginfo-tests] r338371 - [debuginfo-tests] tweak new test to be compatible with wider range of compilers.

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 31 06:19:01 PDT 2018


Author: tnorthover
Date: Tue Jul 31 06:19:01 2018
New Revision: 338371

URL: http://llvm.org/viewvc/llvm-project?rev=338371&view=rev
Log:
[debuginfo-tests] tweak new test to be compatible with wider range of compilers.

emplace_back was added in C++11, and its usage isn't critical to what's being
tested so using push_back instead will allow this test to work with more
compilers.

Modified:
    debuginfo-tests/trunk/asan-deque.cpp

Modified: debuginfo-tests/trunk/asan-deque.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/asan-deque.cpp?rev=338371&r1=338370&r2=338371&view=diff
==============================================================================
--- debuginfo-tests/trunk/asan-deque.cpp (original)
+++ debuginfo-tests/trunk/asan-deque.cpp Tue Jul 31 06:19:01 2018
@@ -20,8 +20,8 @@ static void __attribute__((noinline, opt
 
 int main() {
   log_t log;
-  log.emplace_back(1234);
-  log.emplace_back(56789);
+  log.push_back(1234);
+  log.push_back(56789);
   escape(log);
   // DEBUGGER: break 25
   while (!log.empty()) {




More information about the llvm-commits mailing list