diff options
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;
+}
|