Files
swift-mirror/test/Interop/Cxx/stdlib/Inputs/check-libcxx-version.cpp
Ryan Mansfield 6989653b4f [test] Set _LIBCPP_VERSION check in check-libcxx-version.cpp to include 170004.
This fixes test failures of libcxx-module-interface.swift and
libcxx-symbolic-module-interface.swift where the std module was split.
e.g building against a MacOS 14.4 SDK.
2024-09-13 14:33:56 -04:00

15 lines
189 B
C++

#include <iostream>
int main() {
#if !defined(_LIBCPP_VERSION)
std::cout << "no libc++ found\n";
return 1;
#endif
#if _LIBCPP_VERSION >= 170004
return 0;
#else
return 1;
#endif
}