From 6ee2e26c4a298714a9bdae77c0f626eed3f6596b Mon Sep 17 00:00:00 2001 From: Mihail Mihov Date: Tue, 19 Mar 2024 19:46:19 +0200 Subject: [PATCH] Fix Gradient/SwitchInit test --- test/Gradient/SwitchInit.C | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/test/Gradient/SwitchInit.C b/test/Gradient/SwitchInit.C index 15af82589..1f749bb03 100644 --- a/test/Gradient/SwitchInit.C +++ b/test/Gradient/SwitchInit.C @@ -1,7 +1,6 @@ // RUN: %cladclang %s -I%S/../../include -std=c++17 -oSwitchInit.out 2>&1 -lstdc++ -lm | FileCheck %s // RUN: ./SwitchInit.out | FileCheck -check-prefix=CHECK-EXEC %s //CHECK-NOT: {{.*error|warning|note:.*}} -// XFAIL: target={{i586.*}} #include "clad/Differentiator/Differentiator.h" @@ -23,7 +22,7 @@ double fn1(double i, double j) { // CHECK-NEXT: int count = 0; // CHECK-NEXT: int _cond0; // CHECK-NEXT: double _t0; -// CHECK-NEXT: clad::tape _t1 = {}; +// CHECK-NEXT: clad::tape _t1 = {}; // CHECK-NEXT: double _t2; // CHECK-NEXT: double _t3; // CHECK-NEXT: double _t4; @@ -38,7 +37,7 @@ double fn1(double i, double j) { // CHECK-NEXT: _t0 = res; // CHECK-NEXT: } // CHECK-NEXT: { -// CHECK-NEXT: clad::push(_t1, 1UL); +// CHECK-NEXT: clad::push(_t1, {{1U|1UL}}); // CHECK-NEXT: break; // CHECK-NEXT: } // CHECK-NEXT: { @@ -58,7 +57,7 @@ double fn1(double i, double j) { // CHECK-NEXT: res += i * i * j * j; // CHECK-NEXT: _t4 = res; // CHECK-NEXT: } -// CHECK-NEXT: clad::push(_t1, 2UL); +// CHECK-NEXT: clad::push(_t1, {{2U|2UL}}); // CHECK-NEXT: } // CHECK-NEXT: } // CHECK-NEXT: goto _label0; @@ -66,7 +65,7 @@ double fn1(double i, double j) { // CHECK-NEXT: _d_res += 1; // CHECK-NEXT: { // CHECK-NEXT: switch (clad::pop(_t1)) { -// CHECK-NEXT: case 2UL: +// CHECK-NEXT: case {{2U|2UL}}: // CHECK-NEXT: ; // CHECK-NEXT: { // CHECK-NEXT: { @@ -102,7 +101,7 @@ double fn1(double i, double j) { // CHECK-NEXT: if (1 == _cond0) // CHECK-NEXT: break; // CHECK-NEXT: } -// CHECK-NEXT: case 1UL: +// CHECK-NEXT: case {{1U|1UL}}: // CHECK-NEXT: ; // CHECK-NEXT: { // CHECK-NEXT: { @@ -131,4 +130,4 @@ int main() { clad::array_ref result_ref(result, 2); TEST_2(fn1, 3, 5); // CHECK-EXEC: {156.00, 100.00} -} \ No newline at end of file +}