diff mbox series

[committed] Fix s390 test to have pointer type for computed goto

Message ID 57546e8a-897a-01c3-d19e-b4f18c1c30b3@gmail.com
State New
Headers show
Series [committed] Fix s390 test to have pointer type for computed goto | expand

Commit Message

Jeff Law Oct. 5, 2021, 3:24 p.m. UTC
More minor fallout from Andrew's work. Committed to the trunk.

Jeff
commit f9e6f20f280daf74763cf3fe21f3c211d3d04620
Author: Jeff Law <jeffreyalaw@gmail.com>
Date:   Tue Oct 5 11:15:02 2021 -0400

    Fix s390 test to have pointer type for computed goto
    
    gcc/testsuite
            * gcc.target/s390/pr80725.c: Ensure computed goto is used on
            a pointer type.
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/s390/pr80725.c b/gcc/testsuite/gcc.target/s390/pr80725.c
index 4a402c41422..d556e6ba7ca 100644
--- a/gcc/testsuite/gcc.target/s390/pr80725.c
+++ b/gcc/testsuite/gcc.target/s390/pr80725.c
@@ -18,7 +18,7 @@  foo (int x, int y)
     while (a < x)
       {
 	if (y)
-	  goto *d;
+	  goto *(void *)d;
 	g = b | b + g;
 	bar (g);
 	c = (char) (long) foo;