35 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: c++0310 11// This is for bugs 18853 and 1911812 13#include <tuple>14#include <functional>15 16#include "test_macros.h"17 18struct X19{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