1 // If you modify this, please update debug.cc as well.
4 // { dg-options "-g -O0" }
6 // Copyright (C) 2011-2013 Free Software Foundation, Inc.
8 // This file is part of the GNU ISO C++ Library. This library is free
9 // software; you can redistribute it and/or modify it under the
10 // terms of the GNU General Public License as published by the
11 // Free Software Foundation; either version 3, or (at your option)
14 // This library is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
19 // You should have received a copy of the GNU General Public License along
20 // with this library; see the file COPYING3. If not see
21 // <http://www.gnu.org/licenses/>.
36 std::string str
= "zardoz";
37 // { dg-final { note-test str "\"zardoz\"" } }
43 // { dg-final { note-test bs {std::bitset = {[0] = 1, [5] = 1, [7] = 1}} } }
45 std::deque
<std::string
> deq
;
48 // { dg-final { note-test deq {std::deque with 2 elements = {"one", "two"}} } }
50 std::deque
<std::string
>::iterator deqiter
= deq
.begin();
51 // { dg-final { note-test deqiter {"one"} } }
53 std::list
<std::string
> lst
;
56 // { dg-final { note-test lst {std::list = {[0] = "one", [1] = "two"}} } }
58 std::list
<std::string
>::iterator lstiter
= lst
.begin();
60 // { dg-final { note-test lstiter {"one"}} }
62 std::list
<std::string
>::const_iterator lstciter
= lst
.begin();
64 // { dg-final { note-test lstciter {"one"}} }
66 std::map
<std::string
, int> mp
;
68 // { dg-final { note-test mp {std::map with 1 elements = {["zardoz"] = 23}} } }
70 std::map
<std::string
, int>::iterator mpiter
= mp
.begin();
71 // { dg-final { note-test mpiter {{first = "zardoz", second = 23}} } }
73 std::set
<std::string
> sp
;
74 sp
.insert("clownfish");
76 // { dg-final { note-test sp {std::set with 2 elements = {[0] = "barrel", [1] = "clownfish"}} } }
78 std::set
<std::string
>::const_iterator spciter
= sp
.begin();
79 // { dg-final { note-test spciter {"barrel"} } }
81 __gnu_cxx::slist
<int> sll
;
84 // { dg-final { note-test sll {__gnu_cxx::slist = {[0] = 47, [1] = 23}} } }
86 __gnu_cxx::slist
<int>::iterator slliter
= sll
.begin();
87 // { dg-final { note-test slliter {47} } }
89 return 0; // Mark SPOT
92 // { dg-final { gdb-test SPOT } }