1 // REQUIRES: ompx_taskgraph
2 // RUN: %libomp-cxx-compile-and-run
7 // Compiler-generated code (emulation)
15 int __kmpc_global_thread_num(ident_t
*);
16 int __kmpc_start_record_task(ident_t
*, int, int, int);
17 void __kmpc_end_record_task(ident_t
*, int, int , int);
21 void func(int *num_exec
) {
31 for (int iter
= 0; iter
< NT
; ++iter
) {
32 int gtid
= __kmpc_global_thread_num(nullptr);
33 int res
= __kmpc_start_record_task(nullptr, gtid
, /* kmp_tdg_flags */ 0, /* tdg_id */0);
39 __kmpc_end_record_task(nullptr, gtid
, /* kmp_tdg_flags */0, /* tdg_id */0);
45 std::cout
<< "Passed" << std::endl
;