public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5478] c++: Add static in g++.dg/warn/Waddress-5.C
@ 2021-11-23 19:31 Marek Polacek
0 siblings, 0 replies; only message in thread
From: Marek Polacek @ 2021-11-23 19:31 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7b7318faf7987ae17806a8c84fbaccaf255e7cbf
commit r12-5478-g7b7318faf7987ae17806a8c84fbaccaf255e7cbf
Author: Marek Polacek <polacek@redhat.com>
Date: Tue Nov 23 14:28:30 2021 -0500
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.
Diff:
---
gcc/testsuite/g++.dg/warn/Waddress-5.C | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-23 19:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-23 19:31 [gcc r12-5478] c++: Add static in g++.dg/warn/Waddress-5.C Marek Polacek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).