__main.di 970 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* GDC -- D front-end for GCC
  2. Copyright (C) 2018-2022 Free Software Foundation, Inc.
  3. GCC is free software; you can redistribute it and/or modify it under
  4. the terms of the GNU General Public License as published by the Free
  5. Software Foundation; either version 3, or (at your option) any later
  6. version.
  7. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  8. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  10. for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with GCC; see the file COPYING3. If not see
  13. <http://www.gnu.org/licenses/>.
  14. */
  15. /* This module provides the D main() function supplied by the user's program. */
  16. module __main;
  17. version (D_BetterC)
  18. {
  19. extern (C) int main(int, char**)
  20. {
  21. return 0;
  22. }
  23. }
  24. else
  25. {
  26. int main(char[][])
  27. {
  28. return 0;
  29. }
  30. }