diff --git a/thrust/testing/async/exclusive_scan/using_vs_adl.cu b/thrust/testing/async/exclusive_scan/using_vs_adl.cu index 783b858ed02..5cfae148622 100644 --- a/thrust/testing/async/exclusive_scan/using_vs_adl.cu +++ b/thrust/testing/async/exclusive_scan/using_vs_adl.cu @@ -102,12 +102,14 @@ struct using_cpo // this call to the CPO, as opposed to resolving to the thrust:: algorithm // via ADL. This is verified by checking that an event is returned. using thrust::async::exclusive_scan; + _CCCL_SUPPRESS_DEPRECATED_PUSH thrust::device_event e = exclusive_scan( std::get(THRUST_FWD(prefix_tuple))..., input.cbegin(), input.cend(), output.begin(), std::get(THRUST_FWD(postfix_tuple))...); + _CCCL_SUPPRESS_DEPRECATED_POP return e; } }; diff --git a/thrust/testing/async/inclusive_scan/using_vs_adl.cu b/thrust/testing/async/inclusive_scan/using_vs_adl.cu index c054fcf09a9..2713ecd3aaf 100644 --- a/thrust/testing/async/inclusive_scan/using_vs_adl.cu +++ b/thrust/testing/async/inclusive_scan/using_vs_adl.cu @@ -102,12 +102,14 @@ struct using_cpo // this call to the CPO, as opposed to resolving to the thrust:: algorithm // via ADL. This is verified by checking that an event is returned. using thrust::async::inclusive_scan; + _CCCL_SUPPRESS_DEPRECATED_PUSH thrust::device_event e = inclusive_scan( std::get(THRUST_FWD(prefix_tuple))..., input.cbegin(), input.cend(), output.begin(), std::get(THRUST_FWD(postfix_tuple))...); + _CCCL_SUPPRESS_DEPRECATED_POP return e; } };