// RUN: %clangxx_msan -m64 -O0 -g %s -o %t && %run %t // RUN: %clangxx_msan -m64 -O3 -g %s -o %t && %run %t #include #include #include #include #include int main(int argc, char **argv) { int fd = socket(AF_INET, SOCK_DGRAM, 0); unsigned int z; int res = ioctl(fd, FIOGETOWN, &z); assert(res == 0); close(fd); if (z) exit(0); return 0; }