summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2019-05-07 17:20:21 (GMT)
committerBrad King <brad.king@kitware.com>2019-05-13 17:11:32 (GMT)
commit1ebb0d79fe1330eea4b044bcfd9b613db8bfe86b (patch)
tree4548638363b1a5ec93322d1b55ef5210ed69599b /Tests
parent4aace9b015cd95209c191139b091acbe0c047864 (diff)
downloadCMake-1ebb0d79fe1330eea4b044bcfd9b613db8bfe86b.zip
CMake-1ebb0d79fe1330eea4b044bcfd9b613db8bfe86b.tar.gz
CMake-1ebb0d79fe1330eea4b044bcfd9b613db8bfe86b.tar.bz2
CompileFeatures: Relax cxx_relaxed_constexpr compiler requirements
This in effect means that cxx_relaxed_constexpr is now supported by MSVC and Intel 18.0-18.04.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/cxx_relaxed_constexpr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/CompileFeatures/cxx_relaxed_constexpr.cpp b/Tests/CompileFeatures/cxx_relaxed_constexpr.cpp
index 7b3602c..953148d 100644
--- a/Tests/CompileFeatures/cxx_relaxed_constexpr.cpp
+++ b/Tests/CompileFeatures/cxx_relaxed_constexpr.cpp
@@ -22,6 +22,7 @@ constexpr int g(const int (&is)[4])
int someFunc()
{
- constexpr int k3 = g({ 4, 5, 6, 7 });
+ constexpr int values[4] = { 4, 5, 6, 7 };
+ constexpr int k3 = g(values);
return k3 - 42;
}