Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / forwprop-7.c
blob6b894b5b7c6dcf05b1ad3ef53b35d75a902aa2c0
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-forwprop1 -W -Wall" } */
4 int i;
5 int foo(void)
7 volatile int *p = (volatile int *)&i;
8 return *p + *p;
11 /* We should not convert the cast to a VCE in forwprop1 as we have a volatile reference. */
12 /* { dg-final { scan-tree-dump-times "VIEW_CONVERT_EXPR" 0 "forwprop1"} } */
13 /* { dg-final { scan-tree-dump-times "volatile int" 2 "forwprop1"} } */
14 /* { dg-final { cleanup-tree-dump "forwprop1" } } */