diff --git a/compiler-rt/test/asan/TestCases/asan_update_allocation.cpp b/compiler-rt/test/asan/TestCases/asan_update_allocation.cpp --- a/compiler-rt/test/asan/TestCases/asan_update_allocation.cpp +++ b/compiler-rt/test/asan/TestCases/asan_update_allocation.cpp @@ -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 diff --git a/compiler-rt/test/asan/TestCases/lsan_crash.cpp b/compiler-rt/test/asan/TestCases/lsan_crash.cpp --- a/compiler-rt/test/asan/TestCases/lsan_crash.cpp +++ b/compiler-rt/test/asan/TestCases/lsan_crash.cpp @@ -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 #include