[libc++][NFC] Test span is nothrow trivially destructible
authorJoe Loser <joeloser93@gmail.com>
Tue, 7 Sep 2021 17:48:10 +0000 (13:48 -0400)
committerJoe Loser <joeloser93@gmail.com>
Tue, 7 Sep 2021 17:48:24 +0000 (13:48 -0400)
commit84169fb67e94036dac70467c3d421746e8057478
treec3dda5d803b3fa07013d5f9019c111be8c7b1d5e
parentd0eeb64be5848a7832d13db9d69904db281d02e8
[libc++][NFC] Test span is nothrow trivially destructible

Add tests showing `span` is trivially_destructible and nothrow_destructible.
Note that we do not need to explicitly default the destructor in `span`.

Reviewed By: ldionne, Mordante, #libc

Differential Revision: https://reviews.llvm.org/D109286
libcxx/test/std/containers/views/span.cons/span.dtor.compile.pass.cpp [new file with mode: 0644]