exe_use_static_A_private.c 582 B

1234567891011121314151617181920212223
  1. #ifdef DEF_DIRECT_FROM_A
  2. # error "DEF_DIRECT_FROM_A incorrectly defined"
  3. #endif
  4. #ifdef DEF_DIRECT_FROM_A_FOR_EXE
  5. # error "DEF_DIRECT_FROM_A_FOR_EXE incorrectly defined"
  6. #endif
  7. #ifdef DEF_DIRECT_FROM_A_OPTIONAL
  8. # error "DEF_DIRECT_FROM_A_OPTIONAL incorrectly defined"
  9. #endif
  10. extern void static_A_private(void);
  11. extern void not_direct_from_A(void);
  12. extern void not_direct_from_A_for_exe(void);
  13. extern void not_direct_from_A_optional(void);
  14. int main(void)
  15. {
  16. static_A_private();
  17. not_direct_from_A();
  18. not_direct_from_A_for_exe();
  19. not_direct_from_A_optional();
  20. return 0;
  21. }