summaryrefslogtreecommitdiffhomepage
path: root/test/bptr.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-04 20:00:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-05 03:31:19 +0200
commitc8a6bf30bf7ae43a611f3cacbd77368d02dca575 (patch)
treee033124c8a578e9ee38882af77c778ed0e544352 /test/bptr.cpp
parent3c4301fde92c625df6d95f5094b7eb655c613171 (diff)
a w
Diffstat (limited to 'test/bptr.cpp')
-rw-r--r--test/bptr.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/bptr.cpp b/test/bptr.cpp
new file mode 100644
index 00000000..b8e4bef1
--- /dev/null
+++ b/test/bptr.cpp
@@ -0,0 +1,26 @@
+#include "app.hpp"
+#include "compat/assert.hpp"
+#include "compat/borrowed-ptr.inl"
+
+namespace floormat {
+
+namespace { struct Foo {}; struct Bar : Foo {}; struct Baz {}; }
+template struct detail_borrowed_ptr::control_block_impl<Foo>;
+template class bptr<Foo>;
+template bptr<Bar> static_pointer_cast(const bptr<Foo>&) noexcept;
+
+namespace {
+
+void test1()
+{
+}
+
+} // namespace
+
+void test_app::test_bptr()
+{
+ test1();
+}
+
+
+} // namespace floormat