diff options
Diffstat (limited to 'src/boost/libs/yap/cmake/constexpr_if.cpp')
-rw-r--r-- | src/boost/libs/yap/cmake/constexpr_if.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/boost/libs/yap/cmake/constexpr_if.cpp b/src/boost/libs/yap/cmake/constexpr_if.cpp new file mode 100644 index 000000000..be6ca37f7 --- /dev/null +++ b/src/boost/libs/yap/cmake/constexpr_if.cpp @@ -0,0 +1,13 @@ +// Copyright (C) 2016-2018 T. Zachary Laine +// +// Distributed under the Boost Software License, Version 1.0. (See +// accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) +int main () +{ +#if CHECK_CONSTEXPR_IF + if constexpr (true) { + return 0; + } +#endif +} |