blob: 892479fbeafef6f63e5df9b29926e031ea9dc0c7 [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// <memory>
// void declare_no_pointers(char* p, size_t n);
// void undeclare_no_pointers(char* p, size_t n);
#include <memory>
#include "test_macros.h"
int main(int, char**)
{
char* p = new char[10];
std::declare_no_pointers(p, 10);
std::undeclare_no_pointers(p, 10);
delete [] p;
return 0;
}