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