From 8ea5d875003827d09ef4e4c2adde69b1c0513b16 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Fri, 28 Oct 2016 22:54:24 +0000 Subject: [PATCH] Remove files missed in r285466 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@285469 91177308-0d34-0410-b5e6-96231b3b80d8 --- src/libcpp_version.cpp | 14 -------------- test/libcxx/version.pass.cpp | 31 ------------------------------- 2 files changed, 45 deletions(-) delete mode 100644 src/libcpp_version.cpp delete mode 100644 test/libcxx/version.pass.cpp diff --git a/src/libcpp_version.cpp b/src/libcpp_version.cpp deleted file mode 100644 index b63f8558c..000000000 --- a/src/libcpp_version.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include "__config" - -_LIBCPP_BEGIN_NAMESPACE_STD - -// Test that _LIBCPP_VERSION and __libcpp_version are in sync. -// The __libcpp_version file stores only a number representing the libc++ -// version so it can be easily parsed by clang. -static_assert(_LIBCPP_VERSION == -#include "__libcpp_version" - , "version file does not match"); - -int __libcpp_library_version() { return _LIBCPP_VERSION; } - -_LIBCPP_END_NAMESPACE_STD diff --git a/test/libcxx/version.pass.cpp b/test/libcxx/version.pass.cpp deleted file mode 100644 index a9e8c3478..000000000 --- a/test/libcxx/version.pass.cpp +++ /dev/null @@ -1,31 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is dual licensed under the MIT and the University of Illinois Open -// Source Licenses. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -// UNSUPPORTED: with_system_cxx_lib - -// Test the _LIBCPP_VERSION and _LIBCPP_LIBRARY_VERSION macros - -#include <__config> - -#ifndef _LIBCPP_VERSION -#error _LIBCPP_VERSION must be defined -#endif - -#ifndef _LIBCPP_LIBRARY_VERSION -#error _LIBCPP_LIBRARY_VERSION must be defined -#endif - -#include - -int main() { - assert(_LIBCPP_VERSION == _LIBCPP_LIBRARY_VERSION); - assert(std::__libcpp_library_version); - assert(_LIBCPP_LIBRARY_VERSION == std::__libcpp_library_version()); -}