summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-02-18 00:21:09 +0000
committerEric Fiselier <eric@efcs.ca>2016-02-18 00:21:09 +0000
commitc4ac8bd0513b932e4e9e0b3e5bf3eec8c1e5b9a8 (patch)
tree46db465afe3ccfcb45300f54daf99cd4eaf17e21 /libcxx
parent757373e676d8adcbc8e071ad8c1c7a0cefefc657 (diff)
downloadbcm5719-llvm-c4ac8bd0513b932e4e9e0b3e5bf3eec8c1e5b9a8.tar.gz
bcm5719-llvm-c4ac8bd0513b932e4e9e0b3e5bf3eec8c1e5b9a8.zip
Commit tests missing from r261180.
llvm-svn: 261181
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp21
-rw-r--r--libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp21
2 files changed, 42 insertions, 0 deletions
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
index 00000000000..52433d2f9c4
--- /dev/null
+++ b/libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp
@@ -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
index 00000000000..dc127e92095
--- /dev/null
+++ b/libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp
@@ -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);
+}
OpenPOWER on IntegriCloud