Commit f7a7735
committed
[NFC][SYCL] Test use of sycl_kernel_entry_point with null declarations and statements.
The sycl_kernel_entry_point attribute only appertains to functions. This
change adds missing tests to validate that an appropriate diagnostic is
issued for likely unintentional application of the attribute to a null
declaration or a null statement; perhaps due to an unintended semicolon.1 parent 65de318 commit f7a7735
File tree
1 file changed
+13
-0
lines changed- clang/test/SemaSYCL
1 file changed
+13
-0
lines changedLines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
0 commit comments