Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / containers / associative / multimap / scary.pass.cpp
blob7dcd4e1a09baca7ed394c9c9d3fc84a110b20222
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 // <map>
11 // class map class multimap
13 // Extension: SCARY/N2913 iterator compatibility between map and multimap
15 #include <map>
17 #include "test_macros.h"
19 int main(int, char**)
21 typedef std::map<int, int> M1;
22 typedef std::multimap<int, int> M2;
23 M2::iterator i;
24 M1::iterator j = i;
25 ((void)j);
27 return 0;