Debian Codegraph @

clang/test/SemaOpenMP/amdgpu-image-rsrc.cpp

raw
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
2 // REQUIRES: amdgpu-registered-target
3 // RUN: %clang_cc1 -verify -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -triple amdgcn-amd-amdhsa -fopenmp-is-target-device -Wno-unused-value %s
4
5 void foo() {
6 #pragma omp target
7 {
8 int n = 5;
9 __amdgpu_texture_t v = 0; // expected-error {{cannot initialize a variable of type '__amdgpu_texture_t' with an rvalue of type 'int'}}
10 (void)(v + v); // expected-error {{invalid operands to binary expression}}
11 }
12 }