Fix s390 test to have pointer type for computed goto
authorJeff Law <jeffreyalaw@gmail.com>
Tue, 5 Oct 2021 15:15:02 +0000 (11:15 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Tue, 5 Oct 2021 15:15:02 +0000 (11:15 -0400)
gcc/testsuite
* gcc.target/s390/pr80725.c: Ensure computed goto is used on
a pointer type.

gcc/testsuite/gcc.target/s390/pr80725.c

index 4a402c4..d556e6b 100644 (file)
@@ -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;