[debuginfo-tests] tweak new test to be compatible with wider range of compilers.
authorTim Northover <tnorthover@apple.com>
Tue, 31 Jul 2018 13:19:01 +0000 (13:19 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 31 Jul 2018 13:19:01 +0000 (13:19 +0000)
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.

llvm-svn: 338371

debuginfo-tests/asan-deque.cpp

index 19183d6..6e6cdfd 100644 (file)
@@ -20,8 +20,8 @@ static void __attribute__((noinline, optnone)) escape(log_t &log) {
 
 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()) {