//===-- sanitizer_type_traits_test.cc -------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // This file is a part of ThreadSanitizer/AddressSanitizer runtime. // //===----------------------------------------------------------------------===// #include "sanitizer_common/sanitizer_type_traits.h" #include "gtest/gtest.h" #include "sanitizer_common/sanitizer_internal_defs.h" using namespace __sanitizer; TEST(SanitizerCommon, IsSame) { ASSERT_TRUE((is_same::value)); ASSERT_TRUE((is_same::value)); ASSERT_TRUE((is_same::value)); ASSERT_TRUE((is_same::value)); ASSERT_FALSE((is_same::value)); ASSERT_FALSE((is_same::value)); ASSERT_FALSE((is_same::value)); }