1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include <stdio.h> class A { public: int __attribute__((abi_tag("cxx11"))) test_abi_tag() { return 1; } int test_asm_name() asm("A_test_asm") { return 2; } }; int main(int argc, char **argv) { A a; // Break here a.test_abi_tag(); a.test_asm_name(); return 0; }