23 lines · c
1#ifndef LIB_H_IN2#define LIB_H_IN3 4struct Foo {5 int method();6 Foo(int val);7 ~Foo();8 9 int x;10};11 12struct Base {13 [[gnu::abi_tag("BaseCtor")]] Base();14 [[gnu::abi_tag("BaseDtor")]] ~Base();15};16 17struct Bar : public Base {18 [[gnu::abi_tag("Ctor")]] Bar();19 [[gnu::abi_tag("Dtor")]] ~Bar();20};21 22#endif // LIB_H_IN23