summaryrefslogtreecommitdiff
path: root/asl/option_tests.cpp
blob: ff63e1ab02103e93344db7d23be8eb46d484fcf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "asl/option.hpp"
#include "asl/test_types.hpp"

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;
}