[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / compiler-rt / test / msan / times.cpp
blob7c81884118bce666bdac1562a39434ad42027fc2
1 // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
3 #include <assert.h>
4 #include <stdlib.h>
5 #include <stdio.h>
6 #include <sys/times.h>
9 int main(void) {
10 struct tms t;
11 clock_t res = times(&t);
12 assert(res != (clock_t)-1);
14 if (t.tms_utime) printf("1\n");
15 if (t.tms_stime) printf("2\n");
16 if (t.tms_cutime) printf("3\n");
17 if (t.tms_cstime) printf("4\n");
19 return 0;