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