summaryrefslogtreecommitdiff
path: root/debuginfo-tests
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2018-07-31 13:19:01 +0000
committerTim Northover <tnorthover@apple.com>2018-07-31 13:19:01 +0000
commitea00294a2f903769ad7d2a02696e94d35f2e49f4 (patch)
tree5dce30c3d890e59b3a916310c9d5d78ed17a1b32 /debuginfo-tests
parent3f4ce7c36954cca899eeabeabec733a4c4db5ce1 (diff)
[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.
Diffstat (limited to 'debuginfo-tests')
-rw-r--r--debuginfo-tests/asan-deque.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/debuginfo-tests/asan-deque.cpp b/debuginfo-tests/asan-deque.cpp
index 19183d6cc15..6e6cdfd0e74 100644
--- a/debuginfo-tests/asan-deque.cpp
+++ b/debuginfo-tests/asan-deque.cpp
@@ -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()) {