From 71bab0ef2f3dafaebfe0345a1c65c944d378831b Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Wed, 21 Jun 2023 15:59:17 +0530 Subject: [PATCH] SWDEV-395559 - Test to check __half2_raw can be initialized without designator. (#268) Change-Id: I6dc15074c77b19791babc85c4b32eaa9c1c808d5 --- catch/unit/deviceLib/vectorTypesDevice.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/catch/unit/deviceLib/vectorTypesDevice.cc b/catch/unit/deviceLib/vectorTypesDevice.cc index 5da42bc6bc..cc1cbdcda1 100644 --- a/catch/unit/deviceLib/vectorTypesDevice.cc +++ b/catch/unit/deviceLib/vectorTypesDevice.cc @@ -267,3 +267,7 @@ TEST_CASE("Unit_vectorTypes_CompileTest") { HIP_CHECK(hipFree(ptr)); REQUIRE(passed == true); } +//Test to check __half2_raw can be initialized without designator +TEST_CASE("Unit_half2_raw_def") { + constexpr __half2_raw inf = {0x7C00,0x7C00}; +} \ No newline at end of file