// // Copyright (c) 2012-2020 Kris Jusiak (kris at jusiak dot net) // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // //<- #include #include //-> #include namespace di = boost::di; auto test() { auto injector = di::make_injector(); return injector.create(); } /** * ASM x86-64 (same as `return 0`) * * xor %eax,%eax * retq */ //<- int main(int, char** argv) { std::system(("gdb -batch -ex 'file " + std::string{argv[0]} + "' -ex 'disassemble test'").c_str()); } //->