diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-10-01 23:38:01 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-10-01 23:38:01 +0200 |
commit | 0f2d186fbd4cc637a359b1d62370174aebd2b80f (patch) | |
tree | 3852f378c6f25dae63e16355c9cccc8bcffb551c /asl/option_tests.cpp | |
parent | def67bba57e7cfdf9942bc2c88a4ce484963f9d2 (diff) |
Some work on maybe_uninit & option
Diffstat (limited to 'asl/option_tests.cpp')
-rw-r--r-- | asl/option_tests.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/asl/option_tests.cpp b/asl/option_tests.cpp index 41c67e1..ff63e1a 100644 --- a/asl/option_tests.cpp +++ b/asl/option_tests.cpp @@ -1,3 +1,12 @@ #include "asl/option.hpp"
+#include "asl/test_types.hpp"
-int main() { return 0; }
+static_assert(asl::trivially_destructible<asl::option<TriviallyDestructible>>);
+static_assert(!asl::trivially_destructible<asl::option<HasDestructor>>);
+
+int main()
+{
+ asl::option<HasDestructor> a;
+ asl::option<TriviallyDestructible> b;
+ return 0;
+}
|