[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaOpenCL / builtins-amdgcn-error-flat-address-space.cl
blob86ee55a646de861f6f03c36b8daae93864526502
1 // REQUIRES: amdgpu-registered-target
2 // RUN: %clang_cc1 -triple amdgcn-- -target-cpu tahiti -verify -S -o - %s
4 // expected-no-diagnostics
6 // Make sure no warning is produced on due to dead "flat-address-space" feature.
7 __attribute__((target("flat-address-space")))
8 void test_flat_address_space_builtins(int* ptr)
10 (void)__builtin_amdgcn_is_shared(ptr);
11 (void)__builtin_amdgcn_is_private(ptr);