summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr35468.c
blob: 085c073070c47d7980125dc4afee45266bf606d8 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR tree-optimization/35468 */
/* { dg-do compile  }*/
/* { dg-options "-O2 -fno-tree-dce" } */

char *const f(void)
{
  char *const line = "/dev/ptyXX";
  line[8] = 1;
  return line;
}