From c4ac8bd0513b932e4e9e0b3e5bf3eec8c1e5b9a8 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 18 Feb 2016 00:21:09 +0000 Subject: Commit tests missing from r261180. llvm-svn: 261181 --- .../libcxx/containers/gnu_cxx/hash_map.pass.cpp | 21 +++++++++++++++++++++ .../libcxx/containers/gnu_cxx/hash_set.pass.cpp | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 libcxx/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp create mode 100644 libcxx/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp (limited to 'libcxx/test') 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 + +namespace __gnu_cxx { +template class hash_map; +} + +int main() { + typedef __gnu_cxx::hash_map 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 + +namespace __gnu_cxx { +template class hash_set; +} + +int main() { + typedef __gnu_cxx::hash_set Set; + Set s; + Set s2(s); + ((void)s2); +} -- cgit v1.2.3