1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
7 volatile int * spinlock0
;
8 volatile int * spinlock1
;
9 spinlock0
= &spinlock
[0];
10 spinlock1
= &spinlock
[1];
17 /* { dg-final { scan-tree-dump "={v} \\*spinlock0" "optimized" } } */
18 /* { dg-final { cleanup-tree-dump "optimized" } } */