def test_kernel_cplusplus(self, backend, delems):

        y = op2.Dat(delems, dtype=np.float64)
        y.data[:] = -10.5

        k = op2.Kernel("""
        #include <cmath>

        void kernel(double *y)
        {
            *y = std::abs(*y);
        }
        """, "kernel", cpp=True)
        op2.par_loop(k, y.dataset.set, y(op2.RW))

        assert (y.data == 10.5).all()
Test that passing cpp=True to a Kernel works.
dataset/ETHPy150Open OP2/PyOP2/test/unit/test_direct_loop.py/TestDirectLoop.test_kernel_cplusplus