Skip to content

Commit

Permalink
Add variability in tests for std::__1
Browse files Browse the repository at this point in the history
  • Loading branch information
PetroZarytskyi committed Feb 26, 2024
1 parent 2b5adbb commit 4cef797
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Gradient/UserDefinedTypes.C
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ double fn6(dcomplex c, double i) {
res += 4*c.real();
return res;
}
// CHECK: void real_pullback({{.*}} [[__val:.*]], std::complex<double> *_d_this, {{.*}} *[[_d___val:[a-zA-Z_]*]]){{.*}} {
// CHECK: void real_pullback({{.*}} [[__val:.*]], std{{(::__1)?}}::complex<double> *_d_this, {{.*}} *[[_d___val:[a-zA-Z_]*]]){{.*}} {
// CHECK-NEXT: double _t0;
// CHECK-NEXT: _t0 ={{( __real)?}} this->[[_M_value:.*]];
// CHECK-NEXT: {{(__real)?}} this->[[_M_value:.*]] = [[__val]];
Expand All @@ -273,13 +273,13 @@ double fn6(dcomplex c, double i) {
// CHECK-NEXT: }
// CHECK-NEXT: }

// CHECK: constexpr void real_pullback(double _d_y, std::complex<double> *_d_this){{.*}} {
// CHECK: constexpr void real_pullback(double _d_y, std{{(::__1)?}}::complex<double> *_d_this){{.*}} {
// CHECK-NEXT: goto _label0;
// CHECK-NEXT: _label0:
// CHECK-NEXT: {{(__real)?}} (*_d_this).{{.*}} += _d_y;
// CHECK-NEXT: }

// CHECK: constexpr void imag_pullback(double _d_y, std::complex<double> *_d_this){{.*}} {
// CHECK: constexpr void imag_pullback(double _d_y, std{{(::__1)?}}::complex<double> *_d_this){{.*}} {
// CHECK-NEXT: goto _label0;
// CHECK-NEXT: _label0:
// CHECK-NEXT: {{(__imag)?}} (*_d_this).{{.*}} += _d_y;
Expand Down

0 comments on commit 4cef797

Please sign in to comment.