Pass explicit C++ version to test
authorFrederic Riss <friss@apple.com>
Fri, 26 Apr 2019 21:16:15 +0000 (21:16 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 26 Apr 2019 21:16:15 +0000 (21:16 +0000)
stop-hook-threads.cpp uses C++11 features, so ask for C++11 explicitely.
This isn't broken on mainstream because clang defaults to a newer C++
version now, but it breaks if testing against an older compiler.

llvm-svn: 359349

lldb/lit/ExecControl/StopHook/stop-hook-threads.test

index a90bcff..edb95ff 100644 (file)
@@ -1,4 +1,4 @@
-# RUN: %clangxx %p/Inputs/stop-hook-threads.cpp -g -o %t
+# RUN: %clangxx -std=c++11 %p/Inputs/stop-hook-threads.cpp -g -o %t
 # RUN: %lldb -b -s %p/Inputs/stop-hook-threads-1.lldbinit -s %s -f %t \
 # RUN:     | FileCheck --check-prefix=CHECK --check-prefix=CHECK-NO-FILTER %s
 # RUN: %lldb -b -s %p/Inputs/stop-hook-threads-2.lldbinit -s %s -f %t \