aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr82340.c
blob: ad9f1cfcee16b1037e2b7e34a0a8af40c9d89d85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR c/82340 */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-ssa" } */
/* { dg-final { scan-tree-dump "D.\[0-9]*\\\[0\\\] ={v} 77;" "ssa" } } */

int
foo (void)
{
  int i;
  volatile char *p = (volatile char[1]) { 77 };
  for (i = 1; i < 10; i++)
    *p = 4;
  return *p;
}