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 // <memory>
11
12 // void declare_no_pointers(char* p, size_t n);
13 // void undeclare_no_pointers(char* p, size_t n);
14
15 #include <memory>
16
main()17 int main()
18 {
19 char* p = new char[10];
20 std::declare_no_pointers(p, 10);
21 std::undeclare_no_pointers(p, 10);
22 delete [] p;
23 }
24