llvm/libc/test/src/errno/errno_test.cpp

//===-- Unittests for errno -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "src/errno/libc_errno.h"
#include "test/UnitTest/Test.h"

TEST(LlvmLibcErrnoTest, Basic) {
  int test_val = 123;
  LIBC_NAMESPACE::libc_errno = test_val;
  ASSERT_ERRNO_EQ(test_val);
}