1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // UNSUPPORTED: c++98, c++03
11 
12 // <experimental/memory_resource>
13 
14 // Check that memory_resource is not constructible
15 
16 #include <experimental/memory_resource>
17 #include <type_traits>
18 #include <cassert>
19 
20 namespace ex = std::experimental::pmr;
21 
main()22 int main()
23 {
24     ex::memory_resource m; // expected-error {{variable type 'ex::memory_resource' is an abstract class}}
25 }
26