Skip to content

Commit f295e78

Browse files
authored
[SYCL][NFC] Fix typos in test code comments (#3092)
This patch updates tests related to work_group_size attributes by fixing typos and adding CHECK that happened on commit #2906 Signed-off-by: Soumi Manna <soumi.manna@intel.com>
1 parent a9acb70 commit f295e78

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

clang/test/SemaSYCL/sycl-device-intel-max-work-group-size-template.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int main() {
3838
// CHECK: ClassTemplateDecl {{.*}} {{.*}} KernelFunctor
3939
// CHECK: ClassTemplateSpecializationDecl {{.*}} {{.*}} class KernelFunctor definition
4040
// CHECK: CXXRecordDecl {{.*}} {{.*}} implicit class KernelFunctor
41-
// SYCLIntelMaxWorkGroupSizeAttr {{.*}}
41+
// CHECK: SYCLIntelMaxWorkGroupSizeAttr {{.*}}
4242
// CHECK: SubstNonTypeTemplateParmExpr {{.*}}
4343
// CHECK-NEXT: NonTypeTemplateParmDecl {{.*}}
4444
// CHECK-NEXT: IntegerLiteral{{.*}}4{{$}}
@@ -49,7 +49,7 @@ int main() {
4949
// CHECK-NEXT: NonTypeTemplateParmDecl {{.*}}
5050
// CHECK-NEXT: IntegerLiteral{{.*}}4{{$}}
5151

52-
// Test that checks template parameter suppport on function.
52+
// Test that checks template parameter support on function.
5353
template <int N, int N1, int N2>
5454
[[intel::max_work_group_size(N, N1, N2)]] void func3() {}
5555

@@ -61,7 +61,7 @@ int check() {
6161
// CHECK: FunctionTemplateDecl {{.*}} {{.*}} func3
6262
// CHECK: NonTypeTemplateParmDecl {{.*}} {{.*}} referenced 'int' depth 0 index 0 N
6363
// CHECK: FunctionDecl {{.*}} {{.*}} func3 'void ()'
64-
// SYCLIntelMaxWorkGroupSizeAttr {{.*}}
64+
// CHECK: SYCLIntelMaxWorkGroupSizeAttr {{.*}}
6565
// CHECK: SubstNonTypeTemplateParmExpr {{.*}}
6666
// CHECK-NEXT: NonTypeTemplateParmDecl {{.*}}
6767
// CHECK-NEXT: IntegerLiteral{{.*}}8{{$}}

clang/test/SemaSYCL/sycl-device-intel-reqd-work-group-size-template.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int main() {
4949
// CHECK-NEXT: NonTypeTemplateParmDecl {{.*}}
5050
// CHECK-NEXT: IntegerLiteral{{.*}}1{{$}}
5151

52-
// Test that checks template parameter suppport on function.
52+
// Test that checks template parameter support on function.
5353
template <int N, int N1, int N2>
5454
[[intel::reqd_work_group_size(N, N1, N2)]] void func3() {}
5555

clang/test/SemaSYCL/sycl-device-reqd-work-group-size-template.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int main() {
4949
// CHECK-NEXT: NonTypeTemplateParmDecl {{.*}}
5050
// CHECK-NEXT: IntegerLiteral{{.*}}1{{$}}
5151

52-
// Test that checks template parameter suppport on function.
52+
// Test that checks template parameter support on function.
5353
template <int N, int N1, int N2>
5454
[[cl::reqd_work_group_size(N, N1, N2)]] void func3() {}
5555

0 commit comments

Comments
 (0)