dwp_test.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // dwp_test.h -- a test case for dwp, header file -*- C++ -*-
  2. // Copyright (C) 2012-2015 Free Software Foundation, Inc.
  3. // Written by Cary Coutant <ccoutant@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. // Adapted from two_file_test.h.
  18. class C1
  19. {
  20. public:
  21. bool testcase1();
  22. bool t1a();
  23. int t1_2();
  24. bool testcase2();
  25. bool testcase3();
  26. bool testcase4();
  27. int member1;
  28. };
  29. class C2
  30. {
  31. public:
  32. bool testcase1();
  33. bool testcase2();
  34. bool testcase3();
  35. bool testcase4();
  36. int member1;
  37. };
  38. class C3
  39. {
  40. public:
  41. bool testcase1();
  42. bool testcase2();
  43. bool testcase3();
  44. bool (*f4())();
  45. int member1;
  46. };
  47. extern C3 c3;
  48. extern int v2;
  49. extern int v3;
  50. extern char v4[];
  51. extern char v5[];
  52. extern int f10();
  53. extern int f11a();
  54. extern int f11b(int (*)());
  55. extern bool t12();
  56. extern bool t13();
  57. inline void f13i() { }
  58. extern void (*f13())();
  59. #define TEST_STRING_CONSTANT "test string constant"
  60. extern const char* f14();
  61. #define TEST_WIDE_STRING_CONSTANT L"test wide string constant"
  62. extern const wchar_t* f15();
  63. extern bool t16();
  64. extern bool t16a();
  65. extern bool t17();
  66. extern const char* t17data[];
  67. #define T17_COUNT 5
  68. extern bool t18();
  69. extern const char* f18(int);