1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
16 // Previously this code caused a segfault when compiled at -O2 due to undefined
17 // behavior in __tree. See https://llvm.org/PR28469
25 std::map
<int, std::function
<void()> > m
;
26 F() { m
[42] = &dummy
; }
29 int main(int, char**) {