| //===----------------------------------------------------------------------===// |
| // 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 |
| //===----------------------------------------------------------------------===// |
| void f1(std::ios_base::event ev, std::ios_base& stream, int index) |
| if (ev == std::ios_base::erase_event) |
| assert(stream.getloc().name() == "C"); |
| void f2(std::ios_base::event ev, std::ios_base& stream, int index) |
| if (ev == std::ios_base::erase_event) |
| assert(stream.getloc().name() == "C"); |
| void f3(std::ios_base::event ev, std::ios_base& stream, int index) |
| if (ev == std::ios_base::erase_event) |
| assert(stream.getloc().name() == "C"); |
| b.register_callback(f1, 4); |
| b.register_callback(f2, 5); |
| b.register_callback(f3, 6); |