summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_cxx14_check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Checks/cm_cxx14_check.cpp')
-rw-r--r--Source/Checks/cm_cxx14_check.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Checks/cm_cxx14_check.cpp b/Source/Checks/cm_cxx14_check.cpp
index 9369ba2..fff36c9 100644
--- a/Source/Checks/cm_cxx14_check.cpp
+++ b/Source/Checks/cm_cxx14_check.cpp
@@ -1,8 +1,15 @@
#include <cstdio>
+#include <iterator>
#include <memory>
int main()
{
+ int a[] = { 0, 1, 2 };
+ auto ai = std::cbegin(a);
+
+ int b[] = { 2, 1, 0 };
+ auto bi = std::cend(b);
+
std::unique_ptr<int> u(new int(0));
- return *u;
+ return *u + *ai + *(bi - 1);
}