1828c94c0SKevin Athey // RUN: %clangxx_msan -O0 %s -o %t && %run %t 2828c94c0SKevin Athey 3828c94c0SKevin Athey #include <assert.h> 4828c94c0SKevin Athey #include <pthread.h> 5828c94c0SKevin Athey 6828c94c0SKevin Athey #include <sanitizer/msan_interface.h> 7828c94c0SKevin Athey main()8828c94c0SKevin Atheyint main() { 9*62309ed9SFangrui Song cpu_set_t set_x[4]; 10*62309ed9SFangrui Song int res = pthread_getaffinity_np(pthread_self(), sizeof(set_x), set_x); 11828c94c0SKevin Athey assert(res == 0); 12*62309ed9SFangrui Song __msan_check_mem_is_initialized(set_x, sizeof(set_x)); 13828c94c0SKevin Athey 14828c94c0SKevin Athey return 0; 15828c94c0SKevin Athey } 16