summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_uniform_initialization.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-04 12:53:25 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-08 09:05:56 (GMT)
commit3d76656fb3db56f364bbf7a7655ab1433b72d284 (patch)
tree98c38814b553f60a7f526281494d8a363c800e76 /Tests/CompileFeatures/cxx_uniform_initialization.cpp
parente74b216c90d33548e7b248276346a5d00eff5ee3 (diff)
downloadCMake-3d76656fb3db56f364bbf7a7655ab1433b72d284.zip
CMake-3d76656fb3db56f364bbf7a7655ab1433b72d284.tar.gz
CMake-3d76656fb3db56f364bbf7a7655ab1433b72d284.tar.bz2
Features: Add cxx_uniform_initialization.
Diffstat (limited to 'Tests/CompileFeatures/cxx_uniform_initialization.cpp')
-rw-r--r--Tests/CompileFeatures/cxx_uniform_initialization.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_uniform_initialization.cpp b/Tests/CompileFeatures/cxx_uniform_initialization.cpp
new file mode 100644
index 0000000..82c76e2
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_uniform_initialization.cpp
@@ -0,0 +1,9 @@
+struct A {};
+struct B {
+ B(A) {}
+};
+
+void Func()
+{
+ B b{A{}};
+}