summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_delegating_constructors.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-07 15:28:55 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:54 (GMT)
commit750dfee29c3f45020e8fcff91499a2542913b649 (patch)
treeebe197a7b03dd37cf8e2af31c16a57772a259a70 /Tests/CompileFeatures/cxx_delegating_constructors.cpp
parent9eaf3755987821080908a289cefbf546773071f9 (diff)
downloadCMake-750dfee29c3f45020e8fcff91499a2542913b649.zip
CMake-750dfee29c3f45020e8fcff91499a2542913b649.tar.gz
CMake-750dfee29c3f45020e8fcff91499a2542913b649.tar.bz2
Features: Add cxx_delegating_constructors.
Diffstat (limited to 'Tests/CompileFeatures/cxx_delegating_constructors.cpp')
-rw-r--r--Tests/CompileFeatures/cxx_delegating_constructors.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_delegating_constructors.cpp b/Tests/CompileFeatures/cxx_delegating_constructors.cpp
new file mode 100644
index 0000000..4b41615
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_delegating_constructors.cpp
@@ -0,0 +1,15 @@
+
+class Foo
+{
+public:
+ Foo(int i);
+
+ Foo(double d)
+ : Foo(static_cast<int>(d))
+ {
+
+ }
+
+private:
+ int m_i;
+};