two_file_test.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // two_file_test.h -- a two file test case for gold, header file -*- C++ -*-
  2. // Copyright (C) 2006-2022 Free Software Foundation, Inc.
  3. // Written by Ian Lance Taylor <iant@google.com>.
  4. // This file is part of gold.
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License as published by
  7. // the Free Software Foundation; either version 3 of the License, or
  8. // (at your option) any later version.
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. // You should have received a copy of the GNU General Public License
  14. // along with this program; if not, write to the Free Software
  15. // Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  16. // MA 02110-1301, USA.
  17. // This tests references between files. This is the shared header
  18. // file. See two_file_test_1.cc for details.
  19. extern bool t1();
  20. extern bool t1a();
  21. extern int t1_2();
  22. extern bool t2();
  23. extern int v2;
  24. extern bool t3();
  25. extern int v3;
  26. extern bool t4();
  27. extern char v4[];
  28. extern bool t5();
  29. extern char v5[];
  30. extern bool t6();
  31. extern bool t7();
  32. extern bool t8();
  33. extern bool t9();
  34. extern bool t10();
  35. extern int f10();
  36. extern bool t11();
  37. extern int f11a();
  38. extern int f11b(int (*)());
  39. extern bool t12();
  40. extern bool (*f12())();
  41. extern bool t13();
  42. inline void f13i() { }
  43. extern void (*f13())();
  44. #define TEST_STRING_CONSTANT "test string constant"
  45. extern const char* f14();
  46. #define TEST_WIDE_STRING_CONSTANT L"test wide string constant"
  47. extern const wchar_t* f15();
  48. extern bool t16();
  49. extern bool t16a();
  50. extern bool t17();
  51. extern const char* t17data[];
  52. #define T17_COUNT 5
  53. extern bool t18();
  54. extern const char* f18(int);