1#include <stdbool.h> 2 3 4 5extern bool bar1(); 6 7 8__attribute__((weak)) bool bar1() 9{ 10 return false; 11} 12 13__attribute__((weak)) bool bar2() 14{ 15 return true; 16} 17 18 19bool foo1() 20{ 21 return bar1(); 22} 23 24bool foo2() 25{ 26 return bar2(); 27} 28 29 30