mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
15 lines
189 B
C++
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
|
|
}
|