From f3ccabdcd97a335a9be9809d482f089c7717d66a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 11 Sep 2024 09:38:36 -0600 Subject: [PATCH] Add a test. --- tests/base/smart_pointer_02.cc | 41 ++++++++++++++++++++++++++++ tests/base/smart_pointer_02.run_only | 0 2 files changed, 41 insertions(+) create mode 100644 tests/base/smart_pointer_02.cc create mode 100644 tests/base/smart_pointer_02.run_only diff --git a/tests/base/smart_pointer_02.cc b/tests/base/smart_pointer_02.cc new file mode 100644 index 0000000000..da5af3a911 --- /dev/null +++ b/tests/base/smart_pointer_02.cc @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------ +// +// SPDX-License-Identifier: LGPL-2.1-or-later +// Copyright (C) 2024 by the deal.II authors +// +// This file is part of the deal.II library. +// +// Part of the source code is dual licensed under Apache-2.0 WITH +// LLVM-exception OR LGPL-2.1-or-later. Detailed license information +// governing the source code and code contributions can be found in +// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II. +// +// ------------------------------------------------------------------------ + + + +// Ensure that the old SmartPointer class name continues to be +// available after the renaming to ObserverPointer. + + +#include +#include +#include + +#include +#include + +#include "../tests.h" + + +class Test : public Subscriptor +{}; + + +int +main() +{ + static_assert(std::is_same_v, SmartPointer>); + static_assert( + std::is_same_v, SmartPointer>); +} diff --git a/tests/base/smart_pointer_02.run_only b/tests/base/smart_pointer_02.run_only new file mode 100644 index 0000000000..e69de29bb2 -- 2.39.5