diff gcc/ggc-tests.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line diff
--- a/gcc/ggc-tests.c	Thu Oct 25 07:37:49 2018 +0900
+++ b/gcc/ggc-tests.c	Thu Feb 13 11:34:05 2020 +0900
@@ -1,5 +1,5 @@
 /* Unit tests for GCC's garbage collector (and gengtype etc).
-   Copyright (C) 2015-2018 Free Software Foundation, Inc.
+   Copyright (C) 2015-2020 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -176,8 +176,9 @@
 
 /* Verify that destructors get run when instances are collected.  */
 
-struct GTY(()) test_struct_with_dtor
+class GTY(()) test_struct_with_dtor
 {
+public:
   /* This struct has a destructor; it *ought* to be called
      by the ggc machinery when instances are collected.  */
   ~test_struct_with_dtor () { dtor_call_count++; }