summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-03 17:12:26 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:55 (GMT)
commitebab2015f9b9b11f09e19369be7a1c8d3bfe3ae4 (patch)
tree914a7433ecdcb9f7790887464ea2419eeb29664d /Tests/CompileFeatures
parentac3a1b14c0235cb21b1cce445269426e84e46ae1 (diff)
downloadCMake-ebab2015f9b9b11f09e19369be7a1c8d3bfe3ae4.zip
CMake-ebab2015f9b9b11f09e19369be7a1c8d3bfe3ae4.tar.gz
CMake-ebab2015f9b9b11f09e19369be7a1c8d3bfe3ae4.tar.bz2
Features: Add cxx_explicit_conversions.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/cxx_explicit_conversions.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_explicit_conversions.cpp b/Tests/CompileFeatures/cxx_explicit_conversions.cpp
new file mode 100644
index 0000000..0decdcd
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_explicit_conversions.cpp
@@ -0,0 +1,10 @@
+
+class A
+{
+ int m_i;
+public:
+ explicit operator bool()
+ {
+ return m_i != 0;
+ }
+};