1#include "dylib.h"
2
3int present_weak_int = 10;
4int present_weak_function()
5{
6 return present_weak_int;
7}
8
9#if defined HAS_THEM
10int absent_weak_int = 10;
11int absent_weak_function() {
12 return absent_weak_int;
13}
14#endif
15

source code of lldb/test/API/commands/expression/weak_symbols/dylib.c