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 // Prevent emission of the deprecated warning. 11 #ifdef __clang__ 12 #pragma clang diagnostic ignored "-W#warnings" 13 #endif 14 15 #include <ext/hash_map> 16 17 namespace __gnu_cxx { 18 template class hash_map<int, int>; 19 } 20 21 int main() { 22 typedef __gnu_cxx::hash_map<int, int> Map; 23 Map m; 24 Map m2(m); 25 ((void)m2); 26 } 27