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