1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14, c++17
13 // reference_wrapper<T>
15 // where T is an incomplete type (since C++20)
21 #include "test_macros.h"
30 std::reference_wrapper
<Foo
> ref
{foo
};
31 assert(&ref
.get() == &foo
);
41 int main(int, char**) {