cmake HAVE___THREAD examples

SWI-Prolog/swipl-devel cmake/GCCBuiltins.cmake :12

check_c_source_compiles(
    "__thread int i=0; int main() { return 0; }"
    HAVE___THREAD)