blob: e4c536e8f33ab9ac1749595a7edc7ae6ce04897c [file] [log] [blame]
Peter Collingbournebe8a99a2014-03-03 19:50:01 +00001//===----------------------------------------------------------------------===//
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#include <ext/hash_map>
11
12int main()
13{
14 __gnu_cxx::hash_map<int, int> m;
15 m[1] = 1;
16 const __gnu_cxx::hash_map<int, int> &cm = m;
17 cm.find(1)->second = 2; // error
18}