diff --git a/include/clad/Differentiator/Differentiator.h b/include/clad/Differentiator/Differentiator.h index 247e15412..04b0da055 100644 --- a/include/clad/Differentiator/Differentiator.h +++ b/include/clad/Differentiator/Differentiator.h @@ -219,7 +219,7 @@ namespace clad { } void dump() const { - printf("The code is: %s\n", getCode()); + printf("The code is: \n%s\n", getCode()); } /// Set object pointed by the functor as the default object for diff --git a/test/Misc/RunDemos.C b/test/Misc/RunDemos.C index 6c6d3980b..28beb3bf5 100644 --- a/test/Misc/RunDemos.C +++ b/test/Misc/RunDemos.C @@ -152,7 +152,8 @@ // RUN: ./CustomModelTest.out | FileCheck -check-prefix CHECK_CUSTOM_MODEL_EXEC %s // CHECK_CUSTOM_MODEL_EXEC-NOT:{{.*error|warning|note:.*}} -// CHECK_CUSTOM_MODEL_EXEC: The code is: void func_grad(float x, float y, clad::array_ref _d_x, clad::array_ref _d_y, double &_final_error) { +// CHECK_CUSTOM_MODEL_EXEC: The code is: +// CHECK_CUSTOM_MODEL_EXEC-NEXT: void func_grad(float x, float y, clad::array_ref _d_x, clad::array_ref _d_y, double &_final_error) { // CHECK_CUSTOM_MODEL_EXEC-NEXT: float _d_z = 0; // CHECK_CUSTOM_MODEL_EXEC-NEXT: double _delta_z = 0; // CHECK_CUSTOM_MODEL_EXEC-NEXT: float _EERepl_z0;