clang/test/SemaOpenCL/builtins-amdgcn-error-flat-address-space.cl
raw| 1 | // REQUIRES: amdgpu-registered-target |
| 2 | // RUN: %clang_cc1 -triple amdgcn-- -target-cpu tahiti -verify -S -o - %s |
| 3 | |
| 4 | // expected-no-diagnostics |
| 5 | |
| 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) |
| 9 | { |
| 10 | (void)__builtin_amdgcn_is_shared(ptr); |
| 11 | (void)__builtin_amdgcn_is_private(ptr); |
| 12 | } |