summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-19 12:17:06 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-03-19 12:17:18 (GMT)
commitcc2e5709ed91f7dba70fcc5d1516a0b75633cb25 (patch)
treeb901ad241eff5f676c75331717562f5ba9d552fb /Tests
parentdfc9036bcf65afc4aa0fd21092d47da4ccd259cb (diff)
parentfc96d99c3efae369f60db6f13cb1610121563d7f (diff)
downloadCMake-cc2e5709ed91f7dba70fcc5d1516a0b75633cb25.zip
CMake-cc2e5709ed91f7dba70fcc5d1516a0b75633cb25.tar.gz
CMake-cc2e5709ed91f7dba70fcc5d1516a0b75633cb25.tar.bz2
Merge topic 'intel-initializer-list'
fc96d99c3e Features: Record initializer list support for Intel 14 and above Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1855
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CompileFeatures/cxx_generalized_initializers.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_generalized_initializers.cpp b/Tests/CompileFeatures/cxx_generalized_initializers.cpp
index cfe9d98..0df0a33 100644
--- a/Tests/CompileFeatures/cxx_generalized_initializers.cpp
+++ b/Tests/CompileFeatures/cxx_generalized_initializers.cpp
@@ -11,11 +11,17 @@ class initializer_list
const _E* __begin_;
size_t __size_;
+#ifdef __INTEL_COMPILER
+ // The Intel compiler internally asserts the constructor overloads, so
+ // reproduce the constructor used in its <initializer_list> header.
+ initializer_list(const _E*, size_t) {}
+#else
public:
template <typename T1, typename T2>
initializer_list(T1, T2)
{
}
+#endif
};
}