2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr82340.c
blobad9f1cfcee16b1037e2b7e34a0a8af40c9d89d85
1 /* PR c/82340 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-ssa" } */
4 /* { dg-final { scan-tree-dump "D.\[0-9]*\\\[0\\\] ={v} 77;" "ssa" } } */
6 int
7 foo (void)
9 int i;
10 volatile char *p = (volatile char[1]) { 77 };
11 for (i = 1; i < 10; i++)
12 *p = 4;
13 return *p;