exe_use_static_A_public.c 571 B

1234567891011121314151617181920212223
  1. #ifndef DEF_DIRECT_FROM_A
  2. # error "DEF_DIRECT_FROM_A incorrectly not defined"
  3. #endif
  4. #ifndef DEF_DIRECT_FROM_A_FOR_EXE
  5. # error "DEF_DIRECT_FROM_A_FOR_EXE incorrectly not defined"
  6. #endif
  7. #ifndef DEF_DIRECT_FROM_A_OPTIONAL
  8. # error "DEF_DIRECT_FROM_A_OPTIONAL incorrectly not defined"
  9. #endif
  10. extern void static_A_public(void);
  11. extern void direct_from_A(void);
  12. extern void direct_from_A_for_exe(void);
  13. extern void direct_from_A_optional(void);
  14. int main(void)
  15. {
  16. static_A_public();
  17. direct_from_A();
  18. direct_from_A_for_exe();
  19. direct_from_A_optional();
  20. return 0;
  21. }