gdb_index_test_3.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // gdb_index_test.c -- a test case for the --gdb-index option.
  2. // Copyright (C) 2012-2015 Free Software Foundation, Inc.
  3. // This file is part of gold.
  4. // This program is free software; you can redistribute it and/or modify
  5. // it under the terms of the GNU General Public License as published by
  6. // the Free Software Foundation; either version 3 of the License, or
  7. // (at your option) any later version.
  8. // This program is distributed in the hope that it will be useful,
  9. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. // GNU General Public License for more details.
  12. // You should have received a copy of the GNU General Public License
  13. // along with this program; if not, write to the Free Software
  14. // Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. // MA 02110-1301, USA.
  16. // This source file is just a simple C source file that is mainly to
  17. // test the CU DW_AT_high_pc FORM encoding is handled correctly by the
  18. // DWARF scanner in gold.
  19. int check_int (int);
  20. int main (void);
  21. int j = 0;
  22. int
  23. check_int (int i)
  24. { return i > 0; }
  25. int
  26. main()
  27. {
  28. return check_int (0);
  29. }