#include <stdio.h> #include <stdint.h> extern int8_t $ss26_stdlib_isOSVersionAtLeastyBi1_Bw_BwBwtF(int64_t major, int64_t minor, int64_t patch); int main() { int8_t y = $ss26_stdlib_isOSVersionAtLeastyBi1_Bw_BwBwtF(9999, 0, 0); printf("%d\n", y); return 0; }
$ clang -L $(xcrun --show-sdk-path)/usr/lib/swift -lswiftcore v.c && ./a.out 0