Commit tests missing from r261180.
authorEric Fiselier <eric@efcs.ca>
Thu, 18 Feb 2016 00:21:09 +0000 (00:21 +0000)
committerEric Fiselier <eric@efcs.ca>
Thu, 18 Feb 2016 00:21:09 +0000 (00:21 +0000)
llvm-svn: 261181

libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp [new file with mode: 0644]
libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp [new file with mode: 0644]

diff --git a/libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp b/libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp
new file mode 100644 (file)
index 0000000..52433d2
--- /dev/null
@@ -0,0 +1,21 @@
+//===----------------------------------------------------------------------===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include <ext/hash_map>
+
+namespace __gnu_cxx {
+template class hash_map<int, int>;
+}
+
+int main() {
+  typedef __gnu_cxx::hash_map<int, int> Map;
+  Map m;
+  Map m2(m);
+  ((void)m2);
+}
diff --git a/libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp b/libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp
new file mode 100644 (file)
index 0000000..dc127e9
--- /dev/null
@@ -0,0 +1,21 @@
+//===----------------------------------------------------------------------===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include <ext/hash_set>
+
+namespace __gnu_cxx {
+template class hash_set<int>;
+}
+
+int main() {
+  typedef __gnu_cxx::hash_set<int> Set;
+  Set s;
+  Set s2(s);
+  ((void)s2);
+}