[libc++] NFC: Add a simple test to make sure we destroy elements in std::list

Differential Revision: https://reviews.llvm.org/D99672

GitOrigin-RevId: 8f7c1b22721da9f38e2129248d27df280861fdb1
1 file changed