diff options
Diffstat (limited to 'test/include/assert_test.cpp')
-rw-r--r-- | test/include/assert_test.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/include/assert_test.cpp b/test/include/assert_test.cpp new file mode 100644 index 000000000000..78709bbcdd59 --- /dev/null +++ b/test/include/assert_test.cpp @@ -0,0 +1,15 @@ +//===-- Unittests for assert ----------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDSList-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "include/llvm-libc-macros/assert-macros.h" +#include "test/UnitTest/Test.h" + +TEST(LlvmLibcAssertTest, VersionMacro) { + // 7.2p3 an integer constant expression with a value equivalent to 202311L. + EXPECT_EQ(__STDC_VERSION_ASSERT_H__, 202311L); +} |