summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-02 22:12:02 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:54 (GMT)
commit91f3699000084804100a782e93509a3a53adc2a8 (patch)
tree64a53cffb3ae4c3be7d7049a2b99c327c33da73b /Tests/CompileFeatures
parent7e748417bc8e06caa8eb0b6a6258b7d24cc22bfb (diff)
downloadCMake-91f3699000084804100a782e93509a3a53adc2a8.zip
CMake-91f3699000084804100a782e93509a3a53adc2a8.tar.gz
CMake-91f3699000084804100a782e93509a3a53adc2a8.tar.bz2
Features: Add cxx_defaulted_functions.
Diffstat (limited to 'Tests/CompileFeatures')
-rw-r--r--Tests/CompileFeatures/cxx_defaulted_functions.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_defaulted_functions.cpp b/Tests/CompileFeatures/cxx_defaulted_functions.cpp
new file mode 100644
index 0000000..b679a92
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_defaulted_functions.cpp
@@ -0,0 +1,9 @@
+
+struct A {
+ A() = default;
+};
+
+void someFunc()
+{
+ A a;
+}