Skip to content

Commit

Permalink
[SYCL] Correct misplaced sycl_kernel_entry_point attribute in a names…
Browse files Browse the repository at this point in the history
…pace declaration of a negative test. (#122375)

Commit 1a73654 added a missing
diagnostic for incorrect placement of an attribute in a namespace
declaration. This change corrects a SYCL test that inadvertently
exercised the `sycl_kernel_entry_point` attribute in the wrong
declaration location.
  • Loading branch information
tahonermann authored Jan 9, 2025
1 parent 328c3a8 commit 03eb786
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ struct B3 {
};

// expected-error@+1 {{'sycl_kernel_entry_point' attribute only applies to functions}}
namespace bad4 [[clang::sycl_kernel_entry_point(BADKN<4>)]] {}
namespace [[clang::sycl_kernel_entry_point(BADKN<4>)]] bad4 {}

#if __cplusplus >= 202002L
// expected-error@+2 {{'sycl_kernel_entry_point' attribute only applies to functions}}
Expand Down

0 comments on commit 03eb786

Please sign in to comment.