1*1424dfb3Schristos /* Copyright 2018-2020 Free Software Foundation, Inc.
207163879Schristos 
307163879Schristos    This program is free software; you can redistribute it and/or modify
407163879Schristos    it under the terms of the GNU General Public License as published by
507163879Schristos    the Free Software Foundation; either version 3 of the License, or
607163879Schristos    (at your option) any later version.
707163879Schristos 
807163879Schristos    This program is distributed in the hope that it will be useful,
907163879Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
1007163879Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1107163879Schristos    GNU General Public License for more details.
1207163879Schristos 
1307163879Schristos    You should have received a copy of the GNU General Public License
1407163879Schristos    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
1507163879Schristos 
1607163879Schristos /* A class that does not have RTTI and is small enough to fit in a
1707163879Schristos    hardware watchpoint on all targets.  */
1807163879Schristos class smallstuff { public: int n; };
1907163879Schristos 
2007163879Schristos smallstuff watchme[5];
2107163879Schristos 
2207163879Schristos int
main()2307163879Schristos main ()
2407163879Schristos {
2507163879Schristos   for (int i = 0; i < sizeof (watchme) / sizeof (watchme[0]); i++)
2607163879Schristos     watchme[i].n = i;
2707163879Schristos   return 0;
2807163879Schristos }
29