From 7f978a88855e1a12cbeeaeb3d84a0458570ae53f Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 18 Feb 2016 00:21:09 +0000 Subject: [PATCH] Commit tests missing from r261180. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@261181 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../containers/gnu_cxx/hash_map.pass.cpp | 21 +++++++++++++++++++ .../containers/gnu_cxx/hash_set.pass.cpp | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 test/libcxx/containers/gnu_cxx/hash_map.pass.cpp create mode 100644 test/libcxx/containers/gnu_cxx/hash_set.pass.cpp diff --git a/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp b/test/libcxx/containers/gnu_cxx/hash_map.pass.cpp new file mode 100644 index 000000000..52433d2f9 --- /dev/null +++ b/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/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp b/test/libcxx/containers/gnu_cxx/hash_set.pass.cpp new file mode 100644 index 000000000..dc127e920 --- /dev/null +++ b/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); +}