[llvm-cov] NFC: Specify a specific C++ standard in the test.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 24 Sep 2019 00:01:51 +0000 (00:01 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 24 Sep 2019 00:01:51 +0000 (00:01 +0000)
Makes life easier for downstream users with customized default standard.

llvm-svn: 372674

compiler-rt/test/profile/instrprof-merging.cpp

index 06f05ce..692b049 100644 (file)
@@ -1,8 +1,11 @@
 // 1) Compile shared code into different object files and into an executable.
 
-// RUN: %clangxx_profgen -fcoverage-mapping %s -c -o %t.v1.o -D_VERSION_1
-// RUN: %clangxx_profgen -fcoverage-mapping %s -c -o %t.v2.o -D_VERSION_2
-// RUN: %clangxx_profgen -fcoverage-mapping %t.v1.o %t.v2.o -o %t.exe
+// RUN: %clangxx_profgen -std=c++14 -fcoverage-mapping %s -c -o %t.v1.o \
+// RUN:                  -D_VERSION_1
+// RUN: %clangxx_profgen -std=c++14 -fcoverage-mapping %s -c -o %t.v2.o \
+// RUN:                  -D_VERSION_2
+// RUN: %clangxx_profgen -std=c++14 -fcoverage-mapping %t.v1.o %t.v2.o \
+// RUN:                  -o %t.exe
 
 // 2) Collect profile data.