git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@285392 91177308-0d34-0410-b5e6-96231b3b80d8
32 lines
852 B
C++
32 lines
852 B
C++
// -*- 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 <cassert>
|
|
|
|
int main() {
|
|
assert(_LIBCPP_VERSION == _LIBCPP_LIBRARY_VERSION);
|
|
assert(std::__libcpp_library_version);
|
|
assert(_LIBCPP_LIBRARY_VERSION == std::__libcpp_library_version());
|
|
}
|