[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenOpenCL / builtins-amdgcn-gfx11-err.cl
blob00ecf32d94923857d35bbc9010e0097eaccaebdf
1 // REQUIRES: amdgpu-registered-target
3 // RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu gfx1100 -verify -S -emit-llvm -o - %s
5 typedef unsigned int uint;
6 typedef uint uint2 __attribute__((ext_vector_type(2)));
7 typedef uint uint4 __attribute__((ext_vector_type(4)));
9 kernel void builtins_amdgcn_bvh_err(global uint2* out, uint addr, uint data, uint4 data1, uint offset) {
10 *out = __builtin_amdgcn_ds_bvh_stack_rtn(addr, data, data1, offset); // expected-error {{'__builtin_amdgcn_ds_bvh_stack_rtn' must be a constant integer}}