diff options
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2018-04-12 23:56:17 +0000 |
---|---|---|
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2018-04-12 23:56:17 +0000 |
commit | 9e5283f27f753a226100a0878b3be5b44f603f19 (patch) | |
tree | 7a0f84e264dce51320e52b4d3fde6602aebfcc3b /libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp | |
parent | 23e82831e55dd1a998be6521a4e61dce941b1aec (diff) | |
download | bcm5719-llvm-9e5283f27f753a226100a0878b3be5b44f603f19.tar.gz bcm5719-llvm-9e5283f27f753a226100a0878b3be5b44f603f19.zip |
[libcxx] [test] Use TEST_COMPILER_C1XX.
Also TEST_COMPILER_CLANG in one place. (More could be changed.)
llvm-svn: 329977
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp')
-rw-r--r-- | libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp index 36132443999..7e81610acc8 100644 --- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp +++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.generate/generate_n.pass.cpp @@ -15,14 +15,15 @@ // constexpr void // constexpr after c++17 // generate_n(Iter first, Size n, Generator gen); -#ifdef _MSC_VER +#include "test_macros.h" + +#ifdef TEST_COMPILER_C1XX #pragma warning(disable: 4244) // conversion from 'const double' to 'int', possible loss of data #endif #include <algorithm> #include <cassert> -#include "test_macros.h" #include "test_iterators.h" #include "user_defined_integral.hpp" |