| //===----------------------------------------------------------------------===// |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| // See https://llvm.org/LICENSE.txt for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| //===----------------------------------------------------------------------===// |
| // class function<R(ArgTypes...)> |
| // R operator()(ArgTypes... args) const |
| // member data pointer: cv qualifiers should transfer from argument to return type |
| int A_int_1::*fp = &A_int_1::data_; |
| std::function<int& (const A_int_1*)> r2(fp); |