Hello,
this patch lets the test match q_10, which can happen if you modify gcc a
bit... It seems better to me to improve the test now, but if you think it
is better that I wait until I have a gcc patch that actually requires it,
that's fine with me as well.
gcc/testsuite/
2019-05-20 Marc Glisse <[email protected]>
* gcc.dg/torture/pta-ptrarith-3.c: Relax the matched pattern.
--
Marc GlisseIndex: gcc/testsuite/gcc.dg/torture/pta-ptrarith-3.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/pta-ptrarith-3.c (revision 271376)
+++ gcc/testsuite/gcc.dg/torture/pta-ptrarith-3.c (working copy)
@@ -26,11 +26,11 @@ int main()
{
if (foo(1, 2, 3, -1) != 1)
abort ();
if (foo(1, 2, 3, 0) != 2)
abort ();
if (foo(1, 2, 3, 1) != 3)
abort ();
return 0;
}
-/* { dg-final { scan-tree-dump "q_. = { i j k }" "alias" } } */
+/* { dg-final { scan-tree-dump "q_\[0-9\]* = { i j k }" "alias" } } */