aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/pr49671-2.c
blob: ba5a9d99cf75ce6517b65f0c582d9d9b58f7fe47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" }  */
int t;
static inline int cvmx_atomic_get32(int *ptr)
{
    return *(volatile int*)ptr;
}
void f(void)
{
  while (!cvmx_atomic_get32(&t))
    ;
}

/* { dg-final { scan-tree-dump "\{v\}" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */