From 4fa997393664c53b5ee5dd91d4d2eb459640d478 Mon Sep 17 00:00:00 2001 From: Sean McGovern Date: Wed, 17 Feb 2021 16:41:28 -0500 Subject: [PATCH] UnitTest: test that the function pointer for vfpu_sincos() is non-null --- unittest/UnitTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/unittest/UnitTest.cpp b/unittest/UnitTest.cpp index 6547be7ea6..c56ea4a189 100644 --- a/unittest/UnitTest.cpp +++ b/unittest/UnitTest.cpp @@ -298,6 +298,7 @@ bool TestParsers() { bool TestVFPUSinCos() { float sine, cosine; + EXPECT_FALSE(vfpu_sincos == nullptr); vfpu_sincos(0.0f, sine, cosine); EXPECT_EQ_FLOAT(sine, 0.0f); EXPECT_EQ_FLOAT(cosine, 1.0f);