diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-10-23 01:39:53 +0159 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-10-23 01:39:53 +0159 |
commit | 7d3ad0b7c65dc67005141011191b494d0644fdb6 (patch) | |
tree | 77fa03ebcefe174abeaef371e7fb332b2d928284 /libstdc++-v3/testsuite/23_containers/unordered_multimap/debug/begin2_neg.cc | |
parent | bef1806104660f757f0df78f0c90f6cd3460a157 (diff) | |
download | gcc-aarch64-7d3ad0b7c65dc67005141011191b494d0644fdb6.tar.gz |
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Diffstat (limited to 'libstdc++-v3/testsuite/23_containers/unordered_multimap/debug/begin2_neg.cc')
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/unordered_multimap/debug/begin2_neg.cc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multimap/debug/begin2_neg.cc b/libstdc++-v3/testsuite/23_containers/unordered_multimap/debug/begin2_neg.cc new file mode 100644 index 000000000..5f8c177a2 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/unordered_multimap/debug/begin2_neg.cc @@ -0,0 +1,35 @@ +// Copyright (C) 2012 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING3. If not see +// <http://www.gnu.org/licenses/>. +// +// { dg-require-debug-mode "" } +// { dg-options "-std=c++11" } +// { dg-do run { xfail *-*-* } } + +#include <unordered_map> + +void test01() +{ + std::unordered_map<int, int> um; + const std::unordered_map<int, int>& cum = um; + cum.begin(um.bucket_count()); +} + +int main() +{ + test01(); + return 0; +} |