Howard Hinnant | 9fd9f84 | 2013-09-30 19:08:22 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | // <set> |
| 11 | |
| 12 | // class set class multiset |
| 13 | |
| 14 | // Extension: SCARY/N2913 iterator compatibility between set and multiset |
| 15 | |
| 16 | #include <set> |
| 17 | |
| 18 | int main() |
| 19 | { |
| 20 | typedef std::set<int> M1; |
| 21 | typedef std::multiset<int> M2; |
| 22 | M2::iterator i; |
| 23 | M1::iterator j = i; |
Eric Fiselier | 2decfad | 2015-07-18 23:56:04 +0000 | [diff] [blame] | 24 | ((void)j); |
Howard Hinnant | 9fd9f84 | 2013-09-30 19:08:22 +0000 | [diff] [blame] | 25 | } |