1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9// UNSUPPORTED: c++03
10
11// This is for bugs 18853 and 19118
12
13#include <tuple>
14#include <functional>
15
16#include "test_macros.h"
17
18struct X
19{
20 X() {}
21
22 template <class T>
23 X(T);
24
25 void operator()() {}
26};
27
28int main(int, char**)
29{
30 X x;
31 std::function<void()> f(x);
32
33 return 0;
34}
35

source code of libcxx/test/std/utilities/tuple/tuple.tuple/TupleFunction.pass.cpp