diff mbox series

[pushed] c++: Add static in g++.dg/warn/Waddress-5.C

Message ID 20211123193131.420609-1-polacek@redhat.com
State Committed
Commit 7b7318faf7987ae17806a8c84fbaccaf255e7cbf
Headers show
Series [pushed] c++: Add static in g++.dg/warn/Waddress-5.C | expand

Commit Message

Marek Polacek Nov. 23, 2021, 7:31 p.m. UTC
While reviewing some other changes I noticed that this test talks
about 'sf' being static, but it wasn't actually marked as such.

Tested x86_64-pc-linux-gnu, applying to trunk.

gcc/testsuite/ChangeLog:

	* g++.dg/warn/Waddress-5.C: Make sf static.
---
 gcc/testsuite/g++.dg/warn/Waddress-5.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 3363022ed810a2797c47867890547c8f73163257
diff mbox series

Patch

diff --git a/gcc/testsuite/g++.dg/warn/Waddress-5.C b/gcc/testsuite/g++.dg/warn/Waddress-5.C
index b1ad38a8112..b1287b2fac3 100644
--- a/gcc/testsuite/g++.dg/warn/Waddress-5.C
+++ b/gcc/testsuite/g++.dg/warn/Waddress-5.C
@@ -12,7 +12,7 @@  struct A
   virtual void vf ();
   virtual void pvf () = 0;
 
-  void sf ();
+  static void sf ();
 
   int *p;
   int a[2];