summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2021-11-23 14:28:30 -0500
committerMarek Polacek <polacek@redhat.com>2021-11-23 14:28:48 -0500
commit7b7318faf7987ae17806a8c84fbaccaf255e7cbf (patch)
tree8ca141f0c6af17aa26bd2849c4fa0b885f56f1f1
parent3363022ed810a2797c47867890547c8f73163257 (diff)
downloadgcc-7b7318faf7987ae17806a8c84fbaccaf255e7cbf.tar.gz
c++: Add static in g++.dg/warn/Waddress-5.C
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.
-rw-r--r--gcc/testsuite/g++.dg/warn/Waddress-5.C2
1 files changed, 1 insertions, 1 deletions
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];