diff --git a/test/Hessian/testhessUtility.C b/test/Hessian/testhessUtility.C index 5015dc8d7..3c67ea635 100644 --- a/test/Hessian/testhessUtility.C +++ b/test/Hessian/testhessUtility.C @@ -3,7 +3,6 @@ // RUN: %cladclang -Xclang -plugin-arg-clad -Xclang -enable-tbr %s -I%S/../../include -otesthessUtility.out // RUN: ./testhessUtility.out | FileCheck -check-prefix=CHECK-EXEC %s // CHECK-NOT: {{.*error|warning|note:.*}} -// XFAIL: target={{i586.*}} #include "clad/Differentiator/Differentiator.h" @@ -19,16 +18,16 @@ clad::array_refmat_ref_f1(mat_ref1, 9); double fn(double x, double y) { return x * y; } //CHECK: void fn_hessian(double x, double y, clad::array_ref hessianMatrix) { -//CHECK-NEXT: fn_darg0_grad(x, y, hessianMatrix.slice(0UL, 1UL), hessianMatrix.slice(1UL, 1UL)); -//CHECK-NEXT: fn_darg1_grad(x, y, hessianMatrix.slice(2UL, 1UL), hessianMatrix.slice(3UL, 1UL)); +//CHECK-NEXT: fn_darg0_grad(x, y, hessianMatrix.slice({{0U|0UL}}, {{1U|1UL}}), hessianMatrix.slice({{1U|1UL}}, {{1U|1UL}})); +//CHECK-NEXT: fn_darg1_grad(x, y, hessianMatrix.slice({{2U|2UL}}, {{1U|1UL}}), hessianMatrix.slice({{3U|3UL}}, {{1U|1UL}})); //CHECK-NEXT:} double g(double i, double j[2]) { return i * (j[0] + j[1]); } //CHECK: void g_hessian(double i, double j[2], clad::array_ref hessianMatrix) { -//CHECK-NEXT: g_darg0_grad(i, j, hessianMatrix.slice(0UL, 1UL), hessianMatrix.slice(1UL, 2UL)); -//CHECK-NEXT: g_darg1_0_grad(i, j, hessianMatrix.slice(3UL, 1UL), hessianMatrix.slice(4UL, 2UL)); -//CHECK-NEXT: g_darg1_1_grad(i, j, hessianMatrix.slice(6UL, 1UL), hessianMatrix.slice(7UL, 2UL)); +//CHECK-NEXT: g_darg0_grad(i, j, hessianMatrix.slice({{0U|0UL}}, {{1U|1UL}}), hessianMatrix.slice({{1U|1UL}}, {{2U|2UL}})); +//CHECK-NEXT: g_darg1_0_grad(i, j, hessianMatrix.slice({{3U|3UL}}, {{1U|1UL}}), hessianMatrix.slice({{4U|4UL}}, {{2U|2UL}})); +//CHECK-NEXT: g_darg1_1_grad(i, j, hessianMatrix.slice({{6U|6UL}}, {{1U|1UL}}), hessianMatrix.slice({{7U|7UL}}, {{2U|2UL}})); //CHECK-NEXT: } int main() { @@ -39,4 +38,4 @@ int main() { TEST_HESSIAN(fn, 2, 2, 3, mat_ref_f); // CHECK-EXEC: {0.00, 1.00, 1.00, 0.00} TEST_HESSIAN(g, 2, 2, j, mat_ref_f1); // CHECK-EXEC: {0.00, 1.00, 1.00, 1.00, 0.00, 0.00, 1.00, 0.00, 0.00} -} \ No newline at end of file +}