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 //===----------------------------------------------------------------------===// 8 9 // UNSUPPORTED: c++03 10 11 // <experimental/memory_resource> 12 13 // Check that memory_resource is not constructible 14 15 #include <experimental/memory_resource> 16 #include <type_traits> 17 #include <cassert> 18 19 namespace ex = std::experimental::pmr; 20 21 int main(int, char**) 22 { 23 ex::memory_resource m; // expected-error {{variable type 'ex::memory_resource' is an abstract class}} 24 25 return 0; 26 } 27