diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88fd32328..731bcffae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -296,6 +296,7 @@ jobs: - SWIGLANG: mzscheme continue-on-error: true - SWIGLANG: ocaml + CPPSTD: c++17 continue-on-error: true os: ubuntu-18.04 # ocaml-4.08 in ubuntu-20.04 not yet working # Run all of them, as opposed to aborting when one fails diff --git a/Examples/test-suite/cpp11_rvalue_reference2.i b/Examples/test-suite/cpp11_rvalue_reference2.i index a2a0020f5..a3af6daf8 100644 --- a/Examples/test-suite/cpp11_rvalue_reference2.i +++ b/Examples/test-suite/cpp11_rvalue_reference2.i @@ -20,10 +20,10 @@ static const bool PublicGlobalTrue = true; static const UserDef PublicUserDef = UserDef(); struct Thingy { typedef int Integer; - int val; + int valval; int &lvalref; int &&rvalref; - Thingy(int v, int &&rvalv) : val(v), lvalref(val), rvalref(std::move(rvalv)) {} + Thingy(int v, int &&rvalv) : valval(v), lvalref(valval), rvalref(std::move(rvalv)) {} void refIn(long &i) {} void rvalueIn(long &&i) {} short && rvalueInOut(short &&i) { return std::move(i); } @@ -31,10 +31,10 @@ struct Thingy { // test both primitive and user defined rvalue reference default arguments and compactdefaultargs void compactDefaultArgs(const bool &&b = (const bool &&)PublicGlobalTrue, const UserDef &&u = (const UserDef &&)PublicUserDef) {} void privateDefaultArgs(const bool &&b = (const bool &&)PrivateTrue) {} - operator int &&() { return std::move(val); } - Thingy(const Thingy& rhs) : val(rhs.val), lvalref(rhs.lvalref), rvalref(std::move(rhs.rvalref)) {} + operator int &&() { return std::move(valval); } + Thingy(const Thingy& rhs) : valval(rhs.valval), lvalref(rhs.lvalref), rvalref(std::move(rhs.rvalref)) {} Thingy& operator=(const Thingy& rhs) { - val = rhs.val; + valval = rhs.valval; lvalref = rhs.lvalref; rvalref = rhs.rvalref; return *this; diff --git a/Examples/test-suite/cpp11_template_explicit.i b/Examples/test-suite/cpp11_template_explicit.i index 630342862..950f1d265 100644 --- a/Examples/test-suite/cpp11_template_explicit.i +++ b/Examples/test-suite/cpp11_template_explicit.i @@ -12,7 +12,7 @@ template class Temper { public: - T val; + T valu; }; class A { diff --git a/Examples/test-suite/cpp11_userdefined_literals.i b/Examples/test-suite/cpp11_userdefined_literals.i index 43103cc8c..9284739cd 100644 --- a/Examples/test-suite/cpp11_userdefined_literals.i +++ b/Examples/test-suite/cpp11_userdefined_literals.i @@ -17,8 +17,8 @@ #include struct OutputType { - int val; - OutputType(int v) : val(v) {} + int valu; + OutputType(int v) : valu(v) {} }; // Raw literal diff --git a/Examples/test-suite/ocaml/Makefile.in b/Examples/test-suite/ocaml/Makefile.in index e9253b920..68fea58fc 100644 --- a/Examples/test-suite/ocaml/Makefile.in +++ b/Examples/test-suite/ocaml/Makefile.in @@ -17,6 +17,8 @@ FAILING_CPP_TESTS = \ allprotected \ apply_signed_char \ apply_strings \ +cpp11_director_enums \ +cpp11_strongly_typed_enumerations \ cpp_enum \ default_constructor \ director_binary_string \