diff options
Diffstat (limited to 'src/usr/testcore')
| -rw-r--r-- | src/usr/testcore/lib/stltest.H | 11 |
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 |

