summaryrefslogtreecommitdiffstats
path: root/src/usr/testcore/lib
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2016-05-13 11:04:25 -0500
committerMatthew A. Ploetz <maploetz@us.ibm.com>2016-05-16 14:02:39 -0400
commit02eeaa234cffc6463b27b68d8eef908aec30327d (patch)
tree09ee62b67aeedaa34ea6258936880565a7998335 /src/usr/testcore/lib
parent862d9444b75f596f6f6df5cb6f2c6be082416c31 (diff)
downloadtalos-hostboot-02eeaa234cffc6463b27b68d8eef908aec30327d.tar.gz
talos-hostboot-02eeaa234cffc6463b27b68d8eef908aec30327d.zip
Vector and list initializer lists fail with {} contructor
The initializer list with C++14 now requires we have a non-explicit default constructor in list and vector Change-Id: Iec9e77aedd48c97e3c1c49cfa43274098bd56a03 RTC: 153890 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24518 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: A. P. Williams III <iawillia@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Diffstat (limited to 'src/usr/testcore/lib')
-rw-r--r--src/usr/testcore/lib/stltest.H11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/usr/testcore/lib/stltest.H b/src/usr/testcore/lib/stltest.H
index e5df880dc..c75802ede 100644
--- a/src/usr/testcore/lib/stltest.H
+++ b/src/usr/testcore/lib/stltest.H
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2014 */
+/* Contributors Listed Below - COPYRIGHT 2011,2016 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -473,5 +475,12 @@ class STLTest : public CxxTest::TestSuite
}
+ void testInitListCompile()
+ {
+ // Code wont compile if this doesn't work
+ std::vector< std::vector<int> > v = { {},{1},{1,2,3} };
+ std::list< std::list<int> > l = { {},{1},{1,2,3} };
+ }
+
};
#endif
OpenPOWER on IntegriCloud