Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / containers / associative / map / map.access / index_tuple.pass.cpp
blobcf75e1ebb570f7b286fbbd58b025c409f93a47a2
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03
11 // <map>
13 // class map
15 // mapped_type& operator[](const key_type& k);
17 // https://llvm.org/PR16542
19 #include <map>
20 #include <tuple>
22 int main(int, char**) {
23 std::map<std::tuple<int, int>, std::size_t> m;
24 m[std::make_tuple(2, 3)] = 7;
26 return 0;