]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ggc-tests.c
PR c++/61339 - add mismatch between struct and class [-Wmismatched-tags] to non-bugs
[thirdparty/gcc.git] / gcc / ggc-tests.c
index 752f44679993a69da63e31c7910c199cf994ba85..1ea5e4cfc10685def6f4de1bfffdc33f912caf40 100644 (file)
@@ -176,8 +176,9 @@ test_union ()
 
 /* 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++; }