2 //===-- scan.fail.cpp -----------------------------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++03, c++11, c++14
22 int *first
= nullptr, *last
= nullptr, *result
= nullptr;
24 std::exclusive_scan(policy
, first
, last
, result
, 0); // expected-error {{no matching function for call to 'exclusive_scan'}}
25 std::exclusive_scan(policy
, first
, last
, result
, 0, std::plus
<int>()); // expected-error {{no matching function for call to 'exclusive_scan'}}