/
pccc
/
pccc-mlir
Обзор
Документация
Войти
/
pccc
/
pccc-mlir
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
offload/test/offloading/global_constructor.cpp
27 строк
389 B
obitotsky
fork mlir
19 июл 2026, 07:05
Верифицирован
19 июл 2026, 07:05
6422b87
Код
Авторство
О чём код?
// clang-format off // RUN: %libomptarget-compilexx-generic && %libomptarget-run-generic | %fcheck-generic // clang-format on #include <cstdio> int foo() { return 1; } class C { public: C() : x(foo()) {} int x; }; C c; #pragma omp declare target(c) int main() { int x = 0; #pragma omp target map(from : x) { x = c.x; } // CHECK: PASS if (x == 1) printf("PASS\n"); }