]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: Add static in g++.dg/warn/Waddress-5.C
authorMarek Polacek <polacek@redhat.com>
Tue, 23 Nov 2021 19:28:30 +0000 (14:28 -0500)
committerMarek Polacek <polacek@redhat.com>
Tue, 23 Nov 2021 19:28:48 +0000 (14:28 -0500)
While reviewing some other changes I noticed that this test talks
about 'sf' being static, but it wasn't actually marked as such.

gcc/testsuite/ChangeLog:

* g++.dg/warn/Waddress-5.C: Make sf static.

gcc/testsuite/g++.dg/warn/Waddress-5.C

index b1ad38a811220b557e053e1bc8e0124113f7aa3a..b1287b2fac3162179d65fe113780430abfc27d1e 100644 (file)
@@ -12,7 +12,7 @@ struct A
   virtual void vf ();
   virtual void pvf () = 0;
 
-  void sf ();
+  static void sf ();
 
   int *p;
   int a[2];