diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-04-03 17:18:01 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-04-08 09:05:55 (GMT) |
commit | a579a0aab4e55aeb0a71dc7c1b58db3d126e1fd4 (patch) | |
tree | fb49ee1fc8606bfbc2d353c9ad20ff053df1c90f /Tests/CompileFeatures/cxx_inheriting_constructors.cpp | |
parent | ebab2015f9b9b11f09e19369be7a1c8d3bfe3ae4 (diff) | |
download | CMake-a579a0aab4e55aeb0a71dc7c1b58db3d126e1fd4.zip CMake-a579a0aab4e55aeb0a71dc7c1b58db3d126e1fd4.tar.gz CMake-a579a0aab4e55aeb0a71dc7c1b58db3d126e1fd4.tar.bz2 |
Features: Add cxx_inheriting_constructors.
Diffstat (limited to 'Tests/CompileFeatures/cxx_inheriting_constructors.cpp')
-rw-r--r-- | Tests/CompileFeatures/cxx_inheriting_constructors.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_inheriting_constructors.cpp b/Tests/CompileFeatures/cxx_inheriting_constructors.cpp new file mode 100644 index 0000000..a83b624 --- /dev/null +++ b/Tests/CompileFeatures/cxx_inheriting_constructors.cpp @@ -0,0 +1,18 @@ + +struct A +{ + int m_i; + + A(int i) : m_i(i) {} +}; + +struct B : public A +{ + using A::A; +}; + +void someFunc() +{ + int i; + B b(i); +} |