1 //===----------------------------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is dual licensed under the MIT and the University of Illinois Open 6 // Source Licenses. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 // UNSUPPORTED: c++98, c++03 11 12 // <utility> 13 14 // template <class T1, class T2> struct pair 15 16 // ~pair() 17 18 19 #include <utility> 20 #include <type_traits> 21 #include <string> 22 #include <cassert> 23 24 #include "test_macros.h" 25 26 int main() 27 { 28 static_assert((std::is_trivially_destructible< 29 std::pair<int, float> >::value), ""); 30 static_assert((!std::is_trivially_destructible< 31 std::pair<int, std::string> >::value), ""); 32 } 33