1// RUN: %libomptarget-compile-amdgcn-amd-amdhsa -Xclang \
2// RUN: -mcode-object-version=5
3// RUN: %libomptarget-run-amdgcn-amd-amdhsa | %fcheck-amdgcn-amd-amdhsa
4
5// REQUIRES: amdgcn-amd-amdhsa
6
7#include <stdio.h>
8
9// Test to make sure we can build and run with the previous COV.
10int main() {
11#pragma omp target
12 ;
13
14 // CHECK: PASS
15 printf(format: "PASS\n");
16}
17

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of offload/test/api/amdgpu_code_object.c