[TableGen] Add TreePatternNode::children and use it in for loops (NFC) (#119877)
[llvm-project.git] / pstl / test / std / numerics / numeric.ops / scan.fail.cpp
blobb17944ae0846449921db7d1dfd1ed3fa4e7ab7bf
1 // -*- C++ -*-
2 //===-- scan.fail.cpp -----------------------------------------------------===//
3 //
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
7 //
8 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++03, c++11, c++14
12 #include <execution>
13 #include <numeric>
15 struct CustomPolicy
17 } policy;
19 int32_t
20 main()
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'}}
27 return 0;