Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / openmp / runtime / test / api / omp_get_wtick.c
blob11a320f95708a019864d0b130ee3373c6cbcdedf
1 // RUN: %libomp-compile-and-run
2 #include <stdio.h>
3 #include "omp_testsuite.h"
5 int test_omp_get_wtick()
7 double tick;
8 tick = -1.;
9 tick = omp_get_wtick ();
10 return ((tick > 0.0) && (tick <= 0.01));
13 int main()
15 int i;
16 int num_failed=0;
18 for(i = 0; i < REPETITIONS; i++) {
19 if(!test_omp_get_wtick()) {
20 num_failed++;
23 return num_failed;