//
//===----------------------------------------------------------------------===//
-// RUN: %{build} -fno-exceptions
-// RUN: %{run}
+// ADDITIONAL_COMPILE_FLAGS: -fno-exceptions
// UNSUPPORTED: c++98, c++03
// have to be moved when it is resized.
v.reserve(10);
size_t old_cap = v.capacity();
- for (int i = 0; i < v.capacity(); ++i) {
+ for (size_t i = 0; i < v.capacity(); ++i) {
v.emplace_back(42);
}
assert(v.capacity() == old_cap);
//===----------------------------------------------------------------------===//
// REQUIRES: fcoroutines-ts
-
-// RUN: %{build} -fcoroutines-ts
-// RUN: %{run}
+// ADDITIONAL_COMPILE_FLAGS: -fcoroutines-ts
// A simple "breathing" test that checks that <experimental/coroutine>
// can be parsed and used in all dialects, including C++03 in order to match
// UNSUPPORTED: c++98, c++03, c++11
// REQUIRES: fcoroutines-ts
-
-// RUN: %{build} -fcoroutines-ts
-// RUN: %{run}
+// ADDITIONAL_COMPILE_FLAGS: -fcoroutines-ts
#include <experimental/coroutine>
// typedef TrivialClock file_time_type;
-// RUN: %{build} -I%{libcxx_src_root}/src/filesystem
-// RUN: %{run}
+// ADDITIONAL_COMPILE_FLAGS: -I%{libcxx_src_root}/src/filesystem
#include <filesystem>
#include <chrono>
// definitions, which does not yet provide aligned allocation
// XFAIL: LIBCXX-WINDOWS-FIXME
-// REQUIRES: -faligned-allocation
-
// The dylibs shipped before macosx10.13 do not contain the aligned allocation
// functions, so trying to force using those with -faligned-allocation results
// in a link error.
// XFAIL: with_system_cxx_lib=macosx10.8
// XFAIL: with_system_cxx_lib=macosx10.7
-// RUN: %{build} -faligned-allocation
-// RUN: %{run}
+// REQUIRES: -faligned-allocation
+// ADDITIONAL_COMPILE_FLAGS: -faligned-allocation
#include <new>
#include <typeinfo>
// test that cmath builds with -fdelayed-template-parsing
// REQUIRES: fdelayed-template-parsing
-
-// RUN: %{build} -fdelayed-template-parsing
-// RUN: %{run}
+// ADDITIONAL_COMPILE_FLAGS: -fdelayed-template-parsing
#include <cmath>
#include <cassert>
// NOTE: Only clang-3.7 and GCC 5.1 and greater support -fsized-deallocation.
// REQUIRES: -fsized-deallocation
-
-// RUN: %{build} -fsized-deallocation
-// RUN: %{run}
+// ADDITIONAL_COMPILE_FLAGS: -fsized-deallocation
#if !defined(__cpp_sized_deallocation)
# error __cpp_sized_deallocation should be defined
// NOTE: Only clang-3.7 and GCC 5.1 and greater support -fsized-deallocation.
// REQUIRES: -fsized-deallocation
-
-// RUN: %{build} -fsized-deallocation -O3
-// RUN: %{run}
+// ADDITIONAL_COMPILE_FLAGS: -fsized-deallocation, -O3
#if !defined(__cpp_sized_deallocation)
# error __cpp_sized_deallocation should be defined