public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5475] PR c/108192 - Fix test for mingw
@ 2023-01-28 16:32 Jonathan Yong
0 siblings, 0 replies; only message in thread
From: Jonathan Yong @ 2023-01-28 16:32 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:6464409b0c7077e36858989b5dae302e2d26f45a
commit r13-5475-g6464409b0c7077e36858989b5dae302e2d26f45a
Author: Jonathan Yong <10walls@gmail.com>
Date: Wed Jan 11 09:51:02 2023 +0000
PR c/108192 - Fix test for mingw
gcc/testsuite/ChangeLog:
PR c/108192
* g++.dg/cet-notrack-1.C: Use puts instead of printf,
so function call is not mangled by __mingw_printf when
doing assembly symbol inspection.
Signed-off-by: Jonathan Yong <10walls@gmail.com>
Diff:
---
gcc/testsuite/g++.dg/cet-notrack-1.C | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/g++.dg/cet-notrack-1.C b/gcc/testsuite/g++.dg/cet-notrack-1.C
index ee98fd43d58..a19eed0fb82 100644
--- a/gcc/testsuite/g++.dg/cet-notrack-1.C
+++ b/gcc/testsuite/g++.dg/cet-notrack-1.C
@@ -18,8 +18,8 @@ B b;
A& a = b;
int (A::*amem) () __attribute__((nocf_check)) = &A::foo; // take address
if ((a.*amem)() == 73) // use the address
- printf("pass\n");
+ puts("pass\n");
else
- printf("fail\n");
+ puts("fail\n");
return 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-28 16:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-28 16:32 [gcc r13-5475] PR c/108192 - Fix test for mingw Jonathan Yong
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).