From 61dff10308a41003a134236ce35a0bd025eab1fc Mon Sep 17 00:00:00 2001 From: Oleg Milyutin Date: Tue, 24 Dec 2024 21:02:05 +0000 Subject: [PATCH] Add license header, fix use-after-move warning --- tests/tt_metal/tt_metal/stl/test_strong_type_handle.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/tt_metal/tt_metal/stl/test_strong_type_handle.cpp b/tests/tt_metal/tt_metal/stl/test_strong_type_handle.cpp index ce63137331d..1fd3f532469 100644 --- a/tests/tt_metal/tt_metal/stl/test_strong_type_handle.cpp +++ b/tests/tt_metal/tt_metal/stl/test_strong_type_handle.cpp @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: © 2024 Tenstorrent Inc. +// +// SPDX-License-Identifier: Apache-2.0 + #include #include @@ -56,6 +60,7 @@ TEST(StrongTypeHandleTest, MoveOnlyType) { MoveOnlyHandle to = std::move(from); + // NOLINTNEXTLINE(bugprone-use-after-move) EXPECT_THAT(*from, IsNull()); EXPECT_EQ(**to, 42); }