Move more _LIBCPP_VERSION tests to test/libcxx.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@273365 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
20
test/libcxx/diagnostics/assertions/version_cassert.pass.cpp
Normal file
20
test/libcxx/diagnostics/assertions/version_cassert.pass.cpp
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// 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.
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
// test <cassert>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
|
||||||
|
#ifndef _LIBCPP_VERSION
|
||||||
|
#error _LIBCPP_VERSION not defined
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
}
|
||||||
19
test/libcxx/diagnostics/errno/version_cerrno.pass.cpp
Normal file
19
test/libcxx/diagnostics/errno/version_cerrno.pass.cpp
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
// -*- 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.
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
// test <cerrno>
|
||||||
|
|
||||||
|
#include <cerrno>
|
||||||
|
|
||||||
|
#ifndef _LIBCPP_VERSION
|
||||||
|
#error _LIBCPP_VERSION not defined
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int main() {}
|
||||||
@@ -15,10 +15,6 @@
|
|||||||
#error assert not defined
|
#error assert not defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _LIBCPP_VERSION
|
|
||||||
#error _LIBCPP_VERSION not defined
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,10 +12,6 @@
|
|||||||
|
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
|
|
||||||
#ifndef _LIBCPP_VERSION
|
|
||||||
#error _LIBCPP_VERSION not defined
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef E2BIG
|
#ifndef E2BIG
|
||||||
#error E2BIG not defined
|
#error E2BIG not defined
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user