c/clang:symbol dump demo

This commit is contained in:
luoliwoshang
2024-07-24 14:22:41 +08:00
parent 1eb9775f34
commit 0f8b202531
4 changed files with 1408 additions and 21 deletions

View File

@@ -0,0 +1,40 @@
#ifndef ZOO_H
#define ZOO_H
namespace forest
{
class Bear
{
public:
void roar();
int eat(int berries, int fish);
void sleep(const char *where);
};
} // namespace forest
namespace ocean
{
class Shark
{
public:
void roar();
int eat(int fish, int seals);
void sleep(const char *where);
};
} // namespace ocean
class Eagle
{
public:
void roar();
int eat(int mice, int fish);
void sleep(const char *where);
};
void zookeeper(int money);
#endif // ZOO_H