1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 
4 volatile int count;
5 int arr[4];
foo()6 void foo()
7 {
8  arr[count++] = 0;
9 }
10 
11 /* { dg-final { scan-tree-dump-times "count =" 1 "optimized"} } */
12 
13