Skip to content

Commit

Permalink
Fix Gradient/Pointers test
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailMihov committed Mar 19, 2024
1 parent e77453a commit 761fd25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/Gradient/Pointers.C
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

// FIXME: This test does not work with enable-tbr flag, because the
// current implementation of TBR analysis doesn't support pointers.
// XFAIL: target={{i586.*}}

#include "clad/Differentiator/Differentiator.h"

Expand Down Expand Up @@ -170,7 +169,7 @@ double pointerParam(const double* arr, size_t n) {
// CHECK: void pointerParam_grad_0(const double *arr, size_t n, clad::array_ref<double> _d_arr) {
// CHECK-NEXT: size_t _d_n = 0;
// CHECK-NEXT: double _d_sum = 0;
// CHECK-NEXT: unsigned long _t0;
// CHECK-NEXT: unsigned {{int|long}} _t0;
// CHECK-NEXT: size_t _d_i = 0;
// CHECK-NEXT: size_t i = 0;
// CHECK-NEXT: clad::tape<size_t *> _t1 = {};
Expand Down Expand Up @@ -621,4 +620,4 @@ int main() {
d_x = 0;
d_cStyleMemoryAlloc.execute(5, 7, &d_x);
printf("%.2f\n", d_x); // CHECK-EXEC: 4.00
}
}

0 comments on commit 761fd25

Please sign in to comment.