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_set> 16 17namespace __gnu_cxx { 18template class hash_set<int>; 19} 20 21int main() { 22 typedef __gnu_cxx::hash_set<int> Set; 23 Set s; 24 Set s2(s); 25 ((void)s2); 26} 27