1 | // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t |
---|---|
2 | |
3 | #include <assert.h> |
4 | #include <stdlib.h> |
5 | #include <stdio.h> |
6 | #include <sys/times.h> |
7 | |
8 | |
9 | int main(void) { |
10 | struct tms t; |
11 | clock_t res = times(buffer: &t); |
12 | assert(res != (clock_t)-1); |
13 | |
14 | if (t.tms_utime) printf(format: "1\n"); |
15 | if (t.tms_stime) printf(format: "2\n"); |
16 | if (t.tms_cutime) printf(format: "3\n"); |
17 | if (t.tms_cstime) printf(format: "4\n"); |
18 | |
19 | return 0; |
20 | } |
21 |