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 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++98, c++03
10 
11 // <map>
12 
13 // class map
14 
15 // mapped_type& operator[](const key_type& k);
16 
17 // https://bugs.llvm.org/show_bug.cgi?id=16542
18 
19 #include <map>
20 
21 
22 #include <tuple>
23 
24 
25 int main(int, char**)
26 {
27     using namespace std;
28     map<tuple<int,int>, size_t> m;
29     m[make_tuple(2,3)]=7;
30 
31   return 0;
32 }
33