[memprof] Move YAML traits to MemProf.h (NFC) (#118668)
[llvm-project.git] / libcxx / test / std / utilities / memory / default.allocator / PR50299.compile.pass.cpp
blob245d3d9d320fa49eb93ce9b1ebf3222d1e1012dd
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 //===----------------------------------------------------------------------===//
9 // <memory>
11 // Make sure we can use std::allocator<void> in all Standard modes. While the
12 // explicit specialization for std::allocator<void> was deprecated, using that
13 // specialization was neither deprecated nor removed (in C++20 it should simply
14 // start using the primary template).
16 // See https://llvm.org/PR50299.
18 #include <memory>
20 std::allocator<void> a;