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} .*spinlock" "optimized" } } */
18 /* { dg-final { scan-tree-dump "spinlock.* ={v}" "optimized" } } */