[PATCH] testsuite: Add test directive checking removal of link_error

Jennifer Schmitz jschmitz@nvidia.com
Tue Oct 22 13:18:17 GMT 2024


This test needs a directive checking the removal of the link_error.
Committed as obvious: bf11ecbb02b517dff0034f02adacf9269a11a095

Signed-off-by: Jennifer Schmitz <jschmitz@nvidia.com>

gcc/testsuite/
	* gcc.dg/tree-ssa/log_ident.c: Add scan for removal of
	link_error in optimized tree dump.
---
 gcc/testsuite/gcc.dg/tree-ssa/log_ident.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/log_ident.c b/gcc/testsuite/gcc.dg/tree-ssa/log_ident.c
index 80528beb723..9c4d152438d 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/log_ident.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/log_ident.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -ffast-math" } */
+/* { dg-options "-O2 -ffast-math -fdump-tree-optimized" } */
 /* { dg-require-effective-target c99_runtime } */
 
 extern void link_error(void);
@@ -54,3 +54,5 @@ extern void link_error(void);
 TEST_LOGS (double, , )
 TEST_LOGS (float, f, f)
 TEST_LOGS (long double, L, l)
+
+/* { dg-final { scan-tree-dump-not "link_error" "optimized" } } */
-- 
2.44.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4641 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20241022/557669a1/attachment.p7s>


More information about the Gcc-patches mailing list