[libcxx] r273065 - Fix initialization of test case array in C++11

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 17 15:36:47 PDT 2016


Author: ericwf
Date: Fri Jun 17 17:36:47 2016
New Revision: 273065

URL: http://llvm.org/viewvc/llvm-project?rev=273065&view=rev
Log:
Fix initialization of test case array in C++11

Modified:
    libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.canonical/canonical.pass.cpp

Modified: libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.canonical/canonical.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.canonical/canonical.pass.cpp?rev=273065&r1=273064&r2=273065&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.canonical/canonical.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/filesystem/fs.op.funcs/fs.op.canonical/canonical.pass.cpp Fri Jun 17 17:36:47 2016
@@ -49,7 +49,9 @@ TEST_CASE(test_canonical)
     struct TestCase {
         path p;
         path expect;
-        path base = StaticEnv::Root;
+        path base;
+        TestCase(path p1, path e, path b = StaticEnv::Root)
+            : p(p1), expect(e), base(b) {}
     };
     const TestCase testCases[] = {
         { ".", Root, Root},




More information about the cfe-commits mailing list