[asan] specify c++ version in tests to fix compile error

If we don't specify the c++ version in these tests, it could cause compile errors because the compiler could default to an older c++

rdar://75247244

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D98913
This commit is contained in:
Emily Shi 2021-03-18 19:14:40 -07:00
parent 00d0315a7c
commit 6ca178cd78
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
// RUN: %clangxx_asan -O0 %s -o %t
// RUN: %clangxx_asan -O0 %s --std=c++11 -o %t
// RUN: not %run %t 10 0 2>&1 | FileCheck %s --check-prefixes=CHECK,T0
// RUN: not %run %t 10000000 0 2>&1 | FileCheck %s --check-prefixes=CHECK,T0

View File

@ -1,4 +1,4 @@
// RUN: %clangxx_asan -O2 %s -o %t && %run %t
// RUN: %clangxx_asan -O2 %s --std=c++11 -o %t && %run %t
#include <atomic>
#include <memory>