summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr27498.c
blob: 75d3d4bacd8e633396c38dceaf5011b957cf5aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */

void zconfdump(void)
{
  char *p, *p2;
  for (p2 = p; p2; )
    {
      char __a0, __a1, __a2;
      __a0 = ((__const char *) ("\"\\"))[0];
      if (__a0)
        return;
    }
}

/* { dg-final { scan-tree-dump-not "goto" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */