summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/containers/associative/multimap/scary.pass.cpp
blob: 7dcd4e1a09baca7ed394c9c9d3fc84a110b20222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// <map>

// class map class multimap

// Extension:  SCARY/N2913 iterator compatibility between map and multimap

#include <map>

#include "test_macros.h"

int main(int, char**)
{
    typedef std::map<int, int> M1;
    typedef std::multimap<int, int> M2;
    M2::iterator i;
    M1::iterator j = i;
    ((void)j);

  return 0;
}
OpenPOWER on IntegriCloud