Skip to content

Commit

Permalink
Unit Tests: Fixed compile error in Divide test with newer Apple Clang
Browse files Browse the repository at this point in the history
  • Loading branch information
JanosGit committed Mar 28, 2024
1 parent 46b3b97 commit b2ca9dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/TestCases/Expressions/Divide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@
#pragma warning(disable : 4146)
#endif

template <class T>
T division (T a, T b) { return a / b; }

TEMPLATE_PRODUCT_TEST_CASE ("Division", "[divide]", (PlatformVectorOps, VCTR_NATIVE_SIMD), (float, double, int32_t, uint32_t, int64_t, uint64_t, std::complex<float>, std::complex<double>) )
{
VCTR_TEST_DEFINES_NO_ZEROS (10)

auto division = [] (ElementType a, ElementType b) { return a / b; };

const auto c = srcC[0];

// clang-format off
Expand All @@ -52,6 +51,8 @@ TEMPLATE_PRODUCT_TEST_CASE ("Divide in place", "[divide]", (PlatformVectorOps, V
{
VCTR_TEST_DEFINES_NO_ZEROS (10)

auto division = [] (ElementType a, ElementType b) { return a / b; };

const auto c = srcC[0];

auto quotient1 = srcA;
Expand Down

0 comments on commit b2ca9dd

Please sign in to comment.