1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized -fno-ipa-vrp" } */
6 /* We can not detect A to be const because it may be interposed by unoptimized
9 __attribute__ ((noinline))
22 /* { dg-final { scan-tree-dump "barvar" "optimized" } } */