public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [tuples] Fix expected dejagnu patterns in constructors.c
@ 2007-07-24 18:40 Diego Novillo
  0 siblings, 0 replies; only message in thread
From: Diego Novillo @ 2007-07-24 18:40 UTC (permalink / raw)
  To: gcc-patches


Chris was getting intermittent failures on this testcase because dejagnu was not matching the '[]' properly.  Fixed by escaping the brace the required 1 million times.

2007-07-24  Diego Novillo  <dnovillo@google.com>

        * gcc.dg/gimple/constructors.c: Fix expected pattern.

Index: gcc.dg/gimple/constructors.c
===================================================================
--- gcc.dg/gimple/constructors.c        (revision 126872)
+++ gcc.dg/gimple/constructors.c        (working copy)
@@ -10,10 +10,10 @@ void foo()
     bar(a);
 }

-/* { dg-final { scan-tree-dump-times "gimpleir: a.0. = 1" 1 "gimple"} } */
-/* { dg-final { scan-tree-dump-times "gimpleir: a.1. = 2" 1 "gimple"} } */
-/* { dg-final { scan-tree-dump-times "gimpleir: a.2. = 3" 1 "gimple"} } */
-/* { dg-final { scan-tree-dump-times "gimpleir: a.3. = 4" 1 "gimple"} } */
-/* { dg-final { scan-tree-dump-times "gimpleir: a.4. = 5" 1 "gimple"} } */
+/* { dg-final { scan-tree-dump-times "gimpleir: a\\\[0\\\] = 1" 1 "gimple"} } *
+/* { dg-final { scan-tree-dump-times "gimpleir: a\\\[1\\\] = 2" 1 "gimple"} } *
+/* { dg-final { scan-tree-dump-times "gimpleir: a\\\[2\\\] = 3" 1 "gimple"} } *
+/* { dg-final { scan-tree-dump-times "gimpleir: a\\\[3\\\] = 4" 1 "gimple"} } *
+/* { dg-final { scan-tree-dump-times "gimpleir: a\\\[4\\\] = 5" 1 "gimple"} } *
 /* { dg-final { scan-tree-dump-times "gimpleir: bar \\(&a\\)" 1 "gimple"} } */
 /* { dg-final { cleanup-tree-dump "gimple" } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-24 18:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-24 18:40 [tuples] Fix expected dejagnu patterns in constructors.c Diego Novillo

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).