Skip to content

Commit 6471266

Browse files
committed
Add CHECKs for Integer literals
Signed-off-by: Soumi Manna <[email protected]>
1 parent 87cb866 commit 6471266

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/test/SemaSYCL/intel-fpga-no-global-work-offset.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ int main() {
2323
[]() [[intel::no_global_work_offset(0)]]{});
2424

2525
// CHECK: SYCLIntelNoGlobalWorkOffsetAttr{{.*}}
26+
// CHECK-NEXT: IntegerLiteral{{.*}}42{{$}}
2627
h.single_task<class test_kernel3>(
2728
[]() [[intel::no_global_work_offset(42)]]{});
2829

2930
// CHECK: SYCLIntelNoGlobalWorkOffsetAttr{{.*}}
31+
// CHECK-NEXT: UnaryOperator{{.*}} 'int' prefix '-'
32+
// CHECK-NEXT-NEXT: IntegerLiteral{{.*}}1{{$}}
3033
h.single_task<class test_kernel4>(
3134
[]() [[intel::no_global_work_offset(-1)]]{});
3235

0 commit comments

Comments
 (0)