115551efdSEric Fiselier //===----------------------------------------------------------------------===//
215551efdSEric Fiselier //
357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
615551efdSEric Fiselier //
715551efdSEric Fiselier //===----------------------------------------------------------------------===//
815551efdSEric Fiselier 
9*31cbe0f2SLouis Dionne // UNSUPPORTED: c++03
1015551efdSEric Fiselier 
1115551efdSEric Fiselier // <experimental/memory_resource>
1215551efdSEric Fiselier 
1315551efdSEric Fiselier // Check that memory_resource is not constructible
1415551efdSEric Fiselier 
1515551efdSEric Fiselier #include <experimental/memory_resource>
1615551efdSEric Fiselier #include <type_traits>
1715551efdSEric Fiselier #include <cassert>
1815551efdSEric Fiselier 
1915551efdSEric Fiselier namespace ex = std::experimental::pmr;
2015551efdSEric Fiselier 
main(int,char **)212df59c50SJF Bastien int main(int, char**)
2215551efdSEric Fiselier {
2315551efdSEric Fiselier     ex::memory_resource m; // expected-error {{variable type 'ex::memory_resource' is an abstract class}}
242df59c50SJF Bastien 
252df59c50SJF Bastien   return 0;
2615551efdSEric Fiselier }
27