Skip to content

Commit a6dc6be

Browse files
committed
[Clang][SemaCUDA] Sync test with community for amdgpu-attrs.cu
1 parent 877f312 commit a6dc6be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/SemaCUDA/amdgpu-attrs.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ __global__ void work_group_size_hint_2_2_2() {}
8585
__attribute__((vec_type_hint(int)))
8686
__global__ void vec_type_hint_int() {}
8787

88-
// expected-warning@+1{{'intel_reqd_sub_group_size' attribute ignored}}
88+
// expected-error@+2{{attribute 'intel_reqd_sub_group_size' can only be applied to an OpenCL kernel function}}
8989
__attribute__((intel_reqd_sub_group_size(64)))
9090
__global__ void intel_reqd_sub_group_size_64() {}
9191

0 commit comments

Comments
 (0)