Skip to content

Commit

Permalink
Add license header, fix use-after-move warning
Browse files Browse the repository at this point in the history
  • Loading branch information
omilyutin-tt committed Dec 24, 2024
1 parent 5f3486b commit 61dff10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tt_metal/tt_metal/stl/test_strong_type_handle.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: © 2024 Tenstorrent Inc.
//
// SPDX-License-Identifier: Apache-2.0

#include <gtest/gtest.h>
#include <gmock/gmock.h>

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 61dff10

Please sign in to comment.